X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=CMakeLists.txt;h=1037b43e31b14bf004f4ea615f869c34de49f0a0;hb=a63851bb4726c89d9a3c5755d78d1c4bbc3f3b2e;hp=eb2d2d12772304ee8179ba0c85fe5f0cb24c7ebf;hpb=b2a53cb68658ec297d8b66f4c333a287bf70bc37;p=src%2Fapp-framework-binder.git diff --git a/CMakeLists.txt b/CMakeLists.txt index eb2d2d12..1037b43e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,6 +37,11 @@ INCLUDE(CheckLibraryExists) INCLUDE(GNUInstallDirs) INCLUDE(CTest) +########################################################################### +# possible settings +set(AGL_DEVEL OFF CACHE BOOL "Activates developping features") +set(INCLUDE_MONITORING OFF CACHE BOOL "Activates installation of monitoring") + ########################################################################### link_libraries(-Wl,--as-needed -Wl,--gc-sections -Wl,--no-undefined) @@ -82,6 +87,10 @@ PKG_CHECK_MODULES(openssl REQUIRED openssl) PKG_CHECK_MODULES(uuid REQUIRED uuid) PKG_CHECK_MODULES(cynara cynara-client) +IF(AGL_DEVEL) + ADD_DEFINITIONS(-DAGL_DEVEL) +endif() + IF(cynara_FOUND) ADD_DEFINITIONS(-DBACKEND_PERMISSION_IS_CYNARA) ENDIF(cynara_FOUND) @@ -114,9 +123,8 @@ SET(binding_install_dir ${CMAKE_INSTALL_FULL_LIBDIR}/afb) ########################################################################### # activates the monitoring by default -set(INCLUDE_MONITORING ON CACHE BOOL "Activates installation of monitoring") if(INCLUDE_MONITORING) - add_definitions(-DWITH_MONITORING_OTPION) + add_definitions(-DWITH_MONITORING_OPTION) INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/test/monitoring DESTINATION