summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-05-11 14:32:38 +0500
committerilotterytea <iltsu@alright.party>2024-05-11 14:32:38 +0500
commit81b9f8417130d3501bf56328f9af28816eb45f08 (patch)
tree56c64ff142ff1c6256fc5a7b822e4956445205a6
parent51e20b2b4ab89dfc5731b0b0b074bb8aacdff5d7 (diff)
feat: added ixwebsocket and pqxx dependencies
-rw-r--r--CMakeLists.txt33
1 files changed, 28 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ed4930f..004ad96 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -23,14 +23,37 @@ file(GLOB_RECURSE SRC_FILES "src/*.cpp" "src/*.h" "src/*.hpp")
target_sources(Bot PRIVATE ${SRC_FILES})
+# Getting libraries
include(FetchContent)
-FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz)
+# json
+FetchContent_Declare(
+ json
+ URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz
+)
FetchContent_MakeAvailable(json)
-include(FetchContent)
-FetchContent_Declare(cpr GIT_REPOSITORY https://github.com/libcpr/cpr.git
- GIT_TAG 1.10.5)
+# http request maker
+FetchContent_Declare(
+ cpr
+ GIT_REPOSITORY https://github.com/libcpr/cpr.git
+ GIT_TAG 1.10.5
+)
FetchContent_MakeAvailable(cpr)
-target_link_libraries(Bot PRIVATE ixwebsocket pqxx nlohmann_json::nlohmann_json cpr::cpr)
+# postgresql
+FetchContent_Declare(
+ pqxx
+ GIT_REPOSITORY https://github.com/jtv/libpqxx.git
+ GIT_TAG 7.9.0
+)
+FetchContent_MakeAvailable(pqxx)
+
+FetchContent_Declare(
+ ixwebsocket
+ GIT_REPOSITORY https://github.com/machinezone/IXWebSocket
+ GIT_TAG v11.4.5
+)
+FetchContent_MakeAvailable(ixwebsocket)
+
+target_link_libraries(Bot PRIVATE ixwebsocket::ixwebsocket pqxx nlohmann_json::nlohmann_json cpr::cpr)