projects
/
platform
/
core
/
test
/
security-tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Separate ckm-test by the need of capability
[platform/core/test/security-tests.git]
/
CMakeLists.txt
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
ca11bf1
..
526f196
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-1,4
+1,4
@@
-# Copyright (c) 2012 Samsung Electronics Co., Ltd All Rights Reserved
+# Copyright (c) 2012
-2015
Samsung Electronics Co., Ltd All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@
-45,13
+45,26
@@
SET(CMAKE_CXX_FLAGS_RELEASE "-O2")
SET(SMACK_ENABLE ON)
OPTION(DPL_LOG "DPL logs status" ON)
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_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)
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)
+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.
# 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.
@@
-68,9
+81,9
@@
ADD_DEFINITIONS("-Wall") # Generate all warnings
ADD_DEFINITIONS("-Wextra") # Generate even more extra warnings
ADD_DEFINITIONS("-Wno-variadic-macros") # Inhibit variadic macros warnings (needed for ORM)
ADD_DEFINITIONS("-Wno-deprecated") # No warnings about deprecated features
ADD_DEFINITIONS("-Wextra") # Generate even more extra warnings
ADD_DEFINITIONS("-Wno-variadic-macros") # Inhibit variadic macros warnings (needed for ORM)
ADD_DEFINITIONS("-Wno-deprecated") # No warnings about deprecated features
-STRING(REGEX MATCH "([^.]*)" API_VERSION "${VERSION}")
-ADD_DEFINITIONS("-DAPI_VERSION=\"$(API_VERSION)\"")
+ADD_DEFINITIONS("-Wno-deprecated-declarations") # No warnings about deprecated features
ADD_DEFINITIONS("-DCYNARA_DB_DIR=\"${CYNARA_DB_DIR}\"")
ADD_DEFINITIONS("-DCYNARA_DB_DIR=\"${CYNARA_DB_DIR}\"")
+ADD_DEFINITIONS("-DAPP_USER=\"${APP_USER}\"")
IF(SMACK_ENABLE)
ADD_DEFINITIONS("-DWRT_SMACK_ENABLED")
IF(SMACK_ENABLE)
ADD_DEFINITIONS("-DWRT_SMACK_ENABLED")
@@
-78,8
+91,16
@@
ENDIF(SMACK_ENABLE)
############################# Targets names ###################################
############################# Targets names ###################################
-# No target defined so far
+SET(TARGET_CKM_TEST_COMMON "ckm-test-common")
+SET(TARGET_CKM_TESTS "ckm-tests")
+SET(TARGET_CKM_PRIVILEGED_TESTS "ckm-privileged-tests")
+SET(TARGET_CKMI_TESTS "ckm-integration-tests")
+SET(COMMON_TARGET_TEST "tests-common")
############################# subdirectories ##################################
############################# subdirectories ##################################
-ADD_SUBDIRECTORY(tests)
+ADD_SUBDIRECTORY(src)
+
+IF(BUILD_ALL_TESTS)
+ ADD_SUBDIRECTORY(tests)
+ENDIF(BUILD_ALL_TESTS)