CMake: Integrate fmt
authorhtriem <henrik.triem@netways.de>
Fri, 13 Sep 2019 12:45:29 +0000 (14:45 +0200)
committerhtriem <henrik.triem@netways.de>
Fri, 13 Sep 2019 12:45:29 +0000 (14:45 +0200)
CMakeLists.txt
icinga-app/CMakeLists.txt
third-party/CMakeLists.txt

index bfc5587691f24ae464a7bf60a4430e74092e6757..e4cb783bc2730a80496f808db327bf03a269a1b1 100644 (file)
@@ -170,8 +170,12 @@ find_package(OpenSSL REQUIRED)
 include_directories(${OPENSSL_INCLUDE_DIR})
 
 set(base_DEPS ${CMAKE_DL_LIBS} ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES})
+set(base_DEPS_PRIVATE fmt::fmt-header-only)
 set(base_OBJS $<TARGET_OBJECTS:mmatch> $<TARGET_OBJECTS:socketpair> $<TARGET_OBJECTS:base>)
 
+# fmt
+
+
 # JSON
 find_package(JSON)
 include_directories(${JSON_INCLUDE})
index ee3443b288f930ab5fda104bddf08021a5598520..621871a70eb106c05f71ab2efe0438b145c52800 100644 (file)
@@ -64,7 +64,7 @@ add_executable(icinga-app
   ${icinga_app_SOURCES}
 )
 
-target_link_libraries(icinga-app ${base_DEPS})
+target_link_libraries(icinga-app PUBLIC ${base_DEPS} PRIVATE ${base_DEPS_PRIVATE})
 
 set_target_properties (
   icinga-app PROPERTIES
index fea750f1dfdb82b2f9eb0b0a39cb71133e1d3c1c..a9b6ee9e573ef6b2d343dcaac9f23c2d14665b2f 100644 (file)
@@ -7,3 +7,5 @@ if(UNIX OR CYGWIN)
 endif()
 
 add_subdirectory(socketpair)
+
+add_subdirectory(fmt EXCLUDE_FROM_ALL)
\ No newline at end of file