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("-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")
############################# subdirectories ##################################
ADD_SUBDIRECTORY(src)
-ADD_SUBDIRECTORY(tests)
+
+IF(BUILD_ALL_TESTS)
+ ADD_SUBDIRECTORY(tests)
+ENDIF(BUILD_ALL_TESTS)