X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=CMakeLists.txt;h=1037b43e31b14bf004f4ea615f869c34de49f0a0;hb=4d0e21f182078923c318bf15397fe4c980989aea;hp=0605e2ec2e9ba6008291942434b3881441709fb4;hpb=56c39b8f71d3c098873c4165af1c58d8c1ec999f;p=src%2Fapp-framework-binder.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 0605e2ec..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,7 +123,6 @@ 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_OPTION) INSTALL(DIRECTORY