Skip to content

Commit

Permalink
CMake: check for the JSON library
Browse files Browse the repository at this point in the history
  • Loading branch information
maksis committed Jun 14, 2024
1 parent 0510cdb commit 6073e5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ find_package (OpenSSL REQUIRED)
find_package (Threads REQUIRED)
find_package (Iconv REQUIRED)
find_package (Miniupnpc REQUIRED)
find_package (nlohmann_json 3.0.0 REQUIRED)
if(ENABLE_NATPMP)
find_package (LibNatpmp)
endif()
Expand Down
5 changes: 4 additions & 1 deletion airdcpp-webapi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ file(GLOB_RECURSE webapi_srcs ${PROJECT_SOURCE_DIR}/*.cpp ${PROJECT_SOURCE_DIR}/
set (WEBAPI_SRCS ${webapi_srcs} PARENT_SCOPE)
set (WEBAPI_HDRS ${webapi_hdrs} PARENT_SCOPE)

include_directories(AIRDCPP_HDRS ${PROJECT_SOURCE_DIR} ${PROJECT_SOURCE_DIR} ${Boost_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIRS} ${PROJECT_SOURCE_DIR}/json ${websocketpp_INCLUDE_DIR})
include_directories(AIRDCPP_HDRS
${PROJECT_SOURCE_DIR} ${PROJECT_SOURCE_DIR} ${Boost_INCLUDE_DIRS}
${OPENSSL_INCLUDE_DIRS} ${websocketpp_INCLUDE_DIR}
)

add_library (airdcpp-webapi ${webapi_srcs})

Expand Down

0 comments on commit 6073e5c

Please sign in to comment.