Fix and update manifest file
[platform/core/test/security-tests.git] / CMakeLists.txt
index c42e239..a89c09c 100644 (file)
@@ -57,6 +57,15 @@ 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.
@@ -77,10 +86,18 @@ ADD_DEFINITIONS("-Wno-deprecated-declarations")               # No warnings abou
 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")
@@ -90,4 +107,7 @@ SET(COMMON_TARGET_TEST "tests-common")
 ############################# subdirectories ##################################
 
 ADD_SUBDIRECTORY(src)
-ADD_SUBDIRECTORY(tests)
+
+IF(BUILD_ALL_TESTS)
+    ADD_SUBDIRECTORY(tests)
+ENDIF(BUILD_ALL_TESTS)