From 61246591f075c973c53ea7fbb34ed5dc8d552b61 Mon Sep 17 00:00:00 2001 From: Kirill Kirilenko Date: Sun, 20 Nov 2022 00:00:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D1=85=D0=BE=D0=B4=D0=BD=D0=B8?= =?UTF-8?q?=D0=BA=D0=B8=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D1=89=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=B2=20src.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 19 +------------------ .clang-format => src/.clang-format | 0 Bot.cpp => src/Bot.cpp | 0 Bot.h => src/Bot.h | 0 BotSession.cpp => src/BotSession.cpp | 0 BotSession.h => src/BotSession.h | 0 src/CMakeLists.txt | 18 ++++++++++++++++++ CourtApi.cpp => src/CourtApi.cpp | 0 CourtApi.h => src/CourtApi.h | 0 Dialog.cpp => src/Dialog.cpp | 0 Dialog.h => src/Dialog.h | 0 DialogHelpers.h => src/DialogHelpers.h | 0 Logger.cpp => src/Logger.cpp | 0 Logger.h => src/Logger.h | 0 Storage.cpp => src/Storage.cpp | 0 Storage.h => src/Storage.h | 0 .../SubscribeCaseDialog.cpp | 0 .../SubscribeCaseDialog.h | 0 main.cpp => src/main.cpp | 0 19 files changed, 19 insertions(+), 18 deletions(-) rename .clang-format => src/.clang-format (100%) rename Bot.cpp => src/Bot.cpp (100%) rename Bot.h => src/Bot.h (100%) rename BotSession.cpp => src/BotSession.cpp (100%) rename BotSession.h => src/BotSession.h (100%) create mode 100644 src/CMakeLists.txt rename CourtApi.cpp => src/CourtApi.cpp (100%) rename CourtApi.h => src/CourtApi.h (100%) rename Dialog.cpp => src/Dialog.cpp (100%) rename Dialog.h => src/Dialog.h (100%) rename DialogHelpers.h => src/DialogHelpers.h (100%) rename Logger.cpp => src/Logger.cpp (100%) rename Logger.h => src/Logger.h (100%) rename Storage.cpp => src/Storage.cpp (100%) rename Storage.h => src/Storage.h (100%) rename SubscribeCaseDialog.cpp => src/SubscribeCaseDialog.cpp (100%) rename SubscribeCaseDialog.h => src/SubscribeCaseDialog.h (100%) rename main.cpp => src/main.cpp (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 17690e0..79098e4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,21 +10,4 @@ find_package(Boost COMPONENTS system REQUIRED) add_subdirectory(external) -add_executable(court_monitor - Bot.cpp - BotSession.cpp - CourtApi.cpp - Dialog.cpp - Logger.cpp - Storage.cpp - SubscribeCaseDialog.cpp - main.cpp - ) -target_link_libraries(court_monitor - banana-beast - fmt::fmt - nlohmann_json::nlohmann_json - certify::core - Boost::system - ${OPENSSL_LIBRARIES} - ) +add_subdirectory(src) diff --git a/.clang-format b/src/.clang-format similarity index 100% rename from .clang-format rename to src/.clang-format diff --git a/Bot.cpp b/src/Bot.cpp similarity index 100% rename from Bot.cpp rename to src/Bot.cpp diff --git a/Bot.h b/src/Bot.h similarity index 100% rename from Bot.h rename to src/Bot.h diff --git a/BotSession.cpp b/src/BotSession.cpp similarity index 100% rename from BotSession.cpp rename to src/BotSession.cpp diff --git a/BotSession.h b/src/BotSession.h similarity index 100% rename from BotSession.h rename to src/BotSession.h diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..7480713 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,18 @@ +add_executable(court_monitor + Bot.cpp + BotSession.cpp + CourtApi.cpp + Dialog.cpp + Logger.cpp + Storage.cpp + SubscribeCaseDialog.cpp + main.cpp +) +target_link_libraries(court_monitor + banana-beast + fmt::fmt + nlohmann_json::nlohmann_json + certify::core + Boost::system + ${OPENSSL_LIBRARIES} +) diff --git a/CourtApi.cpp b/src/CourtApi.cpp similarity index 100% rename from CourtApi.cpp rename to src/CourtApi.cpp diff --git a/CourtApi.h b/src/CourtApi.h similarity index 100% rename from CourtApi.h rename to src/CourtApi.h diff --git a/Dialog.cpp b/src/Dialog.cpp similarity index 100% rename from Dialog.cpp rename to src/Dialog.cpp diff --git a/Dialog.h b/src/Dialog.h similarity index 100% rename from Dialog.h rename to src/Dialog.h diff --git a/DialogHelpers.h b/src/DialogHelpers.h similarity index 100% rename from DialogHelpers.h rename to src/DialogHelpers.h diff --git a/Logger.cpp b/src/Logger.cpp similarity index 100% rename from Logger.cpp rename to src/Logger.cpp diff --git a/Logger.h b/src/Logger.h similarity index 100% rename from Logger.h rename to src/Logger.h diff --git a/Storage.cpp b/src/Storage.cpp similarity index 100% rename from Storage.cpp rename to src/Storage.cpp diff --git a/Storage.h b/src/Storage.h similarity index 100% rename from Storage.h rename to src/Storage.h diff --git a/SubscribeCaseDialog.cpp b/src/SubscribeCaseDialog.cpp similarity index 100% rename from SubscribeCaseDialog.cpp rename to src/SubscribeCaseDialog.cpp diff --git a/SubscribeCaseDialog.h b/src/SubscribeCaseDialog.h similarity index 100% rename from SubscribeCaseDialog.h rename to src/SubscribeCaseDialog.h diff --git a/main.cpp b/src/main.cpp similarity index 100% rename from main.cpp rename to src/main.cpp