############################# compiler flags ##################################
-SET(CMAKE_C_FLAGS_PROFILING "-g -O0 -pg")
-SET(CMAKE_CXX_FLAGS_PROFILING "-g -std=c++0x -O0 -pg")
-SET(CMAKE_C_FLAGS_DEBUG "-g -O0 -ggdb")
-SET(CMAKE_CXX_FLAGS_DEBUG "-g -std=c++0x -O0 -ggdb")
+SET(CMAKE_C_FLAGS_PROFILING "-g -O0 -pg -Wp,-U_FORTIFY_SOURCE")
+SET(CMAKE_CXX_FLAGS_PROFILING "-g -std=c++0x -O0 -pg -Wp,-U_FORTIFY_SOURCE")
+SET(CMAKE_C_FLAGS_DEBUG "-g -O0 -ggdb -Wp,-U_FORTIFY_SOURCE")
+SET(CMAKE_CXX_FLAGS_DEBUG "-g -std=c++0x -O0 -ggdb -Wp,-U_FORTIFY_SOURCE")
SET(CMAKE_C_FLAGS_RELEASE "-g -O2")
SET(CMAKE_CXX_FLAGS_RELEASE "-g -std=c++0x -O2")
SET(CMAKE_C_FLAGS_CCOV "-g -O2 --coverage")
ADD_DEFINITIONS("-DBUILD_TYPE_DEBUG")
ENDIF (CMAKE_BUILD_TYPE MATCHES "DEBUG")
+IF (DEFINED SECURITY_MDFPP_STATE_ENABLE)
+ MESSAGE("SECURITY_MDFPP_STATE_ENABLE ENABLED !")
+ ADD_DEFINITIONS("-DSECURITY_MDFPP_STATE_ENABLE")
+ELSE (DEFINED SECURITY_MDFPP_STATE_ENABLE)
+ MESSAGE("SECURITY_MDFPP_STATE_ENABLE DISABLED !")
+ENDIF (DEFINED SECURITY_MDFPP_STATE_ENABLE)
+
+IF (DEFINED SYSTEMD_ENV_FILE)
+ ADD_DEFINITIONS(-DSYSTEMD_ENV_FILE="${SYSTEMD_ENV_FILE}")
+ENDIF (DEFINED SYSTEMD_ENV_FILE)
+
SET(TARGET_KEY_MANAGER "key-manager")
SET(TARGET_KEY_MANAGER_CLIENT "key-manager-client")
-SET(TARGET_KEY_MANAGER_COMMON "key-manager-commons")
+SET(TARGET_KEY_MANAGER_CONTROL_CLIENT "key-manager-control-client")
+SET(TARGET_KEY_MANAGER_COMMON "key-manager-common")
SET(TARGET_KEY_MANAGER_KEY_PROVIDER "key-manager-key-provider")
+SET(TARGET_LISTENER "key-manager-listener")
SET(TARGET_TEST_MERGED "ckm-tests-internal")
-INSTALL(FILES
- ${CMAKE_SOURCE_DIR}/packaging/libkey-manager-client.manifest
- ${CMAKE_SOURCE_DIR}/packaging/key-manager.manifest
- DESTINATION
- /usr/share
-)
-
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(build)
ADD_SUBDIRECTORY(systemd)