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