mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
cmake: add spdlog via add_subdirectory()
This commit is contained in:
parent
336fbed4a6
commit
c5240804b6
2 changed files with 5 additions and 1 deletions
|
@ -57,6 +57,10 @@ find_package(OpenSSL 1.0.0 REQUIRED)
|
|||
find_package(CURL 7.29 REQUIRED)
|
||||
find_package(Criterion)
|
||||
|
||||
set(SPDLOG_BUILD_EXAMPLES OFF)
|
||||
set(SPDLOG_BUILD_TESTING OFF)
|
||||
set(SPDLOG_BUILD_BENCH OFF)
|
||||
add_subdirectory(thirdparty/spdlog)
|
||||
|
||||
pkg_check_modules(JANSSON IMPORTED_TARGET REQUIRED jansson>=2.7)
|
||||
pkg_check_modules(LIBCONFIG IMPORTED_TARGET libconfig>=1.4.9)
|
||||
|
|
|
@ -57,7 +57,6 @@ target_include_directories(villas-common PUBLIC
|
|||
${CURL_INCLUDE_DIRS}
|
||||
${PROJECT_BINARY_DIR}/include
|
||||
${PROJECT_SOURCE_DIR}/include
|
||||
${PROJECT_SOURCE_DIR}/thirdparty/spdlog/include
|
||||
)
|
||||
|
||||
target_link_libraries(villas-common PUBLIC
|
||||
|
@ -66,6 +65,7 @@ target_link_libraries(villas-common PUBLIC
|
|||
${OPENSSL_LIBRARIES}
|
||||
${CURL_LIBRARIES}
|
||||
${CMAKE_DL_LIBS}
|
||||
spdlog
|
||||
)
|
||||
|
||||
target_compile_definitions(villas-common PUBLIC
|
||||
|
|
Loading…
Add table
Reference in a new issue