X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=CMakeLists.txt;h=e1990923a7b93c0ca783528c99a0f334360efb4a;hb=be16dc3a69d92bd79c2e4e9eab0cb2efc18256ba;hp=3d7e1d07d9b6232d83659591a7d47f38ec78d024;hpb=2f00fce3695f11accacf9dde468bf86f26d45a9c;p=src%2Fapp-framework-binder.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 3d7e1d07..e1990923 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,17 +16,15 @@ # 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_SOVERSION "1") @@ -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