summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-05-01 20:38:31 +0500
committerilotterytea <iltsu@alright.party>2024-05-01 20:38:31 +0500
commit9356f7f62e022d0f713af278af9d45e2d2e9bcf5 (patch)
tree7d513dd5f495b8633b16cc1fc37f2af51e532c31 /CMakeLists.txt
parent463b93572f11887752dff6a836899a583c39682c (diff)
feat: added nlohmann/json dependency
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b2741b3..3c1e769 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,6 +9,8 @@ project(
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
+set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
+
add_executable(Bot)
set_target_properties(
@@ -21,4 +23,9 @@ file(GLOB_RECURSE SRC_FILES "src/*.cpp" "src/*.h" "src/*.hpp")
target_sources(Bot PRIVATE ${SRC_FILES})
-target_link_libraries(Bot PRIVATE ixwebsocket pqxx)
+include(FetchContent)
+
+FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz)
+FetchContent_MakeAvailable(json)
+
+target_link_libraries(Bot PRIVATE ixwebsocket pqxx nlohmann_json::nlohmann_json)