diff options
| author | moderndevslulw <moderndevslulw@alright.party> | 2025-04-03 01:10:41 +0500 |
|---|---|---|
| committer | moderndevslulw <moderndevslulw@alright.party> | 2025-04-03 01:10:41 +0500 |
| commit | 53b6600cbaa059d2220c3755e054a51c13558151 (patch) | |
| tree | ca59a14bafdbbf0b68b963cecce62a11ebf38e1a | |
| parent | 53a9a787698e9741958543d50f7d592835c12324 (diff) | |
feat: added dependencies
| -rw-r--r-- | CMakeLists.txt | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index df9b1de..ec7505f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,6 @@ cmake_minimum_required(VERSION 3.10) +include(FetchContent) + project(emotespp VERSION 1.0.0) set(CMAKE_CXX_STANDARD 17) @@ -8,4 +10,29 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON) file(GLOB_RECURSE SRC_FILES "src/*.cpp") add_library(${PROJECT_NAME} STATIC ${SRC_FILES}) -target_include_directories(${PROJECT_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
\ No newline at end of file +target_include_directories(${PROJECT_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include") + +# websockets +FetchContent_Declare( + ixwebsocket + GIT_REPOSITORY https://github.com/machinezone/IXWebSocket + GIT_TAG v11.4.5 +) +FetchContent_MakeAvailable(ixwebsocket) + +# json +FetchContent_Declare( + json + URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz +) +FetchContent_MakeAvailable(json) + +# 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(${PROJECT_NAME} PUBLIC ixwebsocket::ixwebsocket nlohmann_json::nlohmann_json cpr::cpr)
\ No newline at end of file |
