Maximilien Siavelis
2018-01-05 60ae840790232c52ea3f456881771edee02d35ac
CMakeLists.txt
@@ -69,8 +69,7 @@
  SET(HAVE_64BIT_SIZE_T 0)
endif(CMAKE_SIZEOF_VOID_P EQUAL 8)
include(add_boost)
add_boost(STATIC MODULES date_time test program_options system filesystem)
find_package(Boost 1.55.0 COMPONENTS date_time unit_test_framework program_options system filesystem)
#set below in case of dynamic linking in debug.
#set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS $<$<CONFIG:Debug>:BOOST_TEST_DYN_LINK>)
add_definitions(-DBOOST_ALL_NO_LIB) #Disable Boost Microsoft magic, all dependencies are handled by cmake
@@ -80,10 +79,13 @@
   #find a static version of openssl crypto library
   find_package(OpenSSL REQUIRED)
   include_directories(${OPENSSL_INCLUDE_DIR})
   #-lssl for backward compatibility with old openssl versions
   list(APPEND EXTERNAL_LIBS ${OPENSSL_LIBRARIES})
   list(APPEND EXTERNAL_LIBS ${OPENSSL_CRYPTO_LIBRARY})
   MESSAGE(STATUS "Found openssl version ${OPENSSL_VERSION}")
   #Zlib required when openssl version < 1.0.1f
   find_package(ZLIB REQUIRED)
   list(APPEND EXTERNAL_LIBS ${ZLIB_LIBRARIES})
   if(USE_DBUS_IDENTIFIER)
       FIND_PACKAGE(Dbus REQUIRED)
       add_definitions(-DUSE_DBUS)
@@ -141,8 +143,6 @@
add_subdirectory(test)
#include(build/modules/CmakeDebugVariables.txt)
message("")
message( STATUS "C compiler: " ${CMAKE_C_COMPILER})
message( STATUS "C compiler flags: " ${CMAKE_C_FLAGS})
message( STATUS "CXX compiler: " ${CMAKE_CXX_COMPILER})