SET(SMACK_ENABLE ON)
OPTION(DPL_LOG "DPL logs status" ON)
+OPTION(DPL_WITH_DLOG "DPL DLOG backend" OFF)
IF(DPL_LOG)
MESSAGE(STATUS "Logging enabled for DPL")
ADD_DEFINITIONS("-DDPL_LOGS_ENABLED")
+ IF(DPL_WITH_DLOG)
+ MESSAGE(STATUS "Enable DLOG backend")
+ ADD_DEFINITIONS("-DDPL_DLOG_ENABLED")
+ ENDIF(DPL_WITH_DLOG)
ELSE(DPL_LOG)
MESSAGE(STATUS "Logging disabled for DPL")
ENDIF(DPL_LOG)
+OPTION(BUILD_ALL_TESTS "Build all tests" ON)
+IF(BUILD_ALL_TESTS)
+ SET(BUILD_CKM ON)
+ SET(BUILD_SM ON)
+ SET(BUILD_CYNARA ON)
+ SET(BUILD_WEB ON)
+ SET(BUILD_YACA ON)
+ENDIF(BUILD_ALL_TESTS)
+
# If supported for the target machine, emit position-independent code,suitable
# for dynamic linking and avoiding any limit on the size of the global offset
# table. This option makes a difference on the m68k, PowerPC and SPARC.
ADD_DEFINITIONS("-Wno-variadic-macros") # Inhibit variadic macros warnings (needed for ORM)
ADD_DEFINITIONS("-Wno-deprecated") # No warnings about deprecated features
ADD_DEFINITIONS("-Wno-deprecated-declarations") # No warnings about deprecated features
-STRING(REGEX MATCH "([^.]*)" API_VERSION "${VERSION}")
-ADD_DEFINITIONS("-DAPI_VERSION=\"$(API_VERSION)\"")
ADD_DEFINITIONS("-DCYNARA_DB_DIR=\"${CYNARA_DB_DIR}\"")
ADD_DEFINITIONS("-DAPP_USER=\"${APP_USER}\"")
+# Enabler for popups; this should be done on system-level somewhere, but since it isn't
+# and we already have such definition in security-manager, lets have it also here
+ADD_DEFINITIONS("-DASKUSER_ENABLED")
+
IF(SMACK_ENABLE)
ADD_DEFINITIONS("-DWRT_SMACK_ENABLED")
ENDIF(SMACK_ENABLE)
+IF(NOT DEFINED SHARE_INSTALL_PREFIX)
+ SET(SHARE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/share")
+ENDIF(NOT DEFINED SHARE_INSTALL_PREFIX)
+
############################# Targets names ###################################
SET(TARGET_CKM_TESTS "ckm-tests")
+SET(TARGET_CKMI_TESTS "ckm-integration-tests")
SET(COMMON_TARGET_TEST "tests-common")
############################# subdirectories ##################################
ADD_SUBDIRECTORY(src)
+
+IF(BUILD_ALL_TESTS)
+ ADD_SUBDIRECTORY(tests)
+ENDIF(BUILD_ALL_TESTS)