'Generic Commit'
Some checks failed
dropshell-build / build (push) Has been cancelled

This commit is contained in:
Your Name
2025-06-06 18:36:58 +12:00
parent 40bbd8684d
commit a961bd37e6
4 changed files with 94 additions and 26 deletions

View File

@ -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}
)