X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=CMakeLists.txt;h=163a74b6e11af8ed8e1ba72f05eda6728af6724b;hb=3a3ee2aa68333fce13fb2611b0165def47573c5d;hp=5a8d2d2a14dbb07f813ae7ec0e3765effb46d885;hpb=119e23a69678d0d71a81d8460b4bc0099c8c9729;p=src%2Fapp-framework-binder.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 5a8d2d2a..163a74b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,19 +16,17 @@ # limitations under the License. ########################################################################### -PROJECT(afb-daemon C) +CMAKE_MINIMUM_REQUIRED(VERSION 3.0) -CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) -SET(CMAKE_BUILD_TYPE Debug) -SET(CMAKE_POSITION_INDEPENDENT_CODE ON) +PROJECT(afb-daemon C CXX) SET(PROJECT_NAME "AFB Daemon") SET(PROJECT_PRETTY_NAME "Application Framework Binder Daemon") SET(PROJECT_DESCRIPTION "Secured binder of API for clients of the Application framework") -SET(PROJECT_VERSION "1.0") -SET(PROJECT_URL "https://github.com/iotbzh/afb-daemon") +SET(PROJECT_VERSION "4.99-EERC1") +set(PROJECT_URL "https://gerrit.automotivelinux.org/gerrit/gitweb?p=src/app-framework-binder.git;a=summary") -SET(LIBAFBWSC_VERSION "1.0") +SET(LIBAFBWSC_VERSION "1.1") SET(LIBAFBWSC_SOVERSION "1") INCLUDE(FindPkgConfig) @@ -37,6 +35,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,10 +85,16 @@ 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) +ADD_DEFINITIONS(-DAFB_VERSION="${PROJECT_VERSION}") + INCLUDE_DIRECTORIES( ${INCLUDE_DIRS} ${CMAKE_SOURCE_DIR}/include @@ -112,6 +121,19 @@ SET(link_libraries SET(binding_install_dir ${CMAKE_INSTALL_FULL_LIBDIR}/afb) +########################################################################### +# activates the monitoring by default +if(INCLUDE_MONITORING) + add_definitions(-DWITH_MONITORING_OPTION) + INSTALL(DIRECTORY + ${CMAKE_CURRENT_SOURCE_DIR}/test/monitoring + DESTINATION + ${binding_install_dir} + ) +endif() + +########################################################################### + ADD_SUBDIRECTORY(src) ADD_SUBDIRECTORY(include) ADD_SUBDIRECTORY(bindings)