This commit is contained in:
@ -72,6 +72,8 @@ target_include_directories(${PROJECT_EXE_NAME} PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/autogen
|
||||
)
|
||||
|
||||
|
||||
|
||||
# Add nlohmann/json
|
||||
FetchContent_Declare(
|
||||
nlohmann_json
|
||||
@ -93,9 +95,20 @@ set(EXTRA_LIBS
|
||||
-ldl # For dladdr
|
||||
)
|
||||
|
||||
|
||||
##########
|
||||
# If you include the drogon source code locally in your project, use this method to add drogon
|
||||
# add_subdirectory(external/drogon)
|
||||
# target_link_libraries(${PROJECT_NAME} PRIVATE drogon)
|
||||
##########
|
||||
find_package(Drogon CONFIG REQUIRED)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE Drogon::Drogon)
|
||||
|
||||
|
||||
# Link libraries
|
||||
target_link_libraries(${PROJECT_EXE_NAME} PRIVATE
|
||||
nlohmann_json::nlohmann_json
|
||||
Drogon::Drogon
|
||||
${EXTRA_LIBS}
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user