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