| | |
| | | #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}) |
| | | FIND_PACKAGE(Dbus REQUIRED) |
| | | include_directories(${DBUS_INCLUDE_DIR}) |
| | | include_directories(${DBUS_ARCH_INCLUDE_DIR}) |
| | | list(APPEND EXTERNAL_LIBS ${DBUS_LIBRARIES}) |
| | | MESSAGE(STATUS "Found openssl version ${OPENSSL_VERSION}") |
| | | if(USE_DBUS_IDENTIFIER) |
| | | FIND_PACKAGE(Dbus REQUIRED) |
| | | add_definitions(-DUSE_DBUS) |
| | | include_directories(${DBUS_INCLUDE_DIR}) |
| | | include_directories(${DBUS_ARCH_INCLUDE_DIR}) |
| | | list(APPEND EXTERNAL_LIBS ${DBUS_LIBRARIES}) |
| | | endif(USE_DBUS_IDENTIFIER) |
| | | list(APPEND EXTERNAL_LIBS dl) |
| | | endif(NOT WIN32) |
| | | |