Commit 90f9c769 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

cmake: add spdlog via add_subdirectory()

parent d016bffc
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment