Merge branch 'tizen' into ckm
[platform/core/test/security-tests.git] / src / ckm / privileged / CMakeLists.txt
1 # Copyright (c) 2013-2015 Samsung Electronics Co., Ltd All Rights Reserved
2 #
3 #   Licensed under the Apache License, Version 2.0 (the "License");
4 #   you may not use this file except in compliance with the License.
5 #   You may obtain a copy of the License at
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
9 #   Unless required by applicable law or agreed to in writing, software
10 #   distributed under the License is distributed on an "AS IS" BASIS,
11 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #   See the License for the specific language governing permissions and
13 #   limitations under the License.
14 #
15 # @file        CMakeLists.txt
16 # @author      Bartlomiej Grzelewski (b.grzelewski@samsung.com)
17 # @brief
18 #
19 PKG_CHECK_MODULES(CKM_DEP
20     REQUIRED
21     libsmack
22     dbus-1
23 )
24
25 SET(CKM_SOURCES
26     access_provider2.cpp
27     async-api.cpp
28     capi-access_control.cpp
29     ckm-privileged-common.cpp
30     initial-values.cpp
31     main.cpp
32     system-db.cpp
33 )
34
35 INCLUDE_DIRECTORIES(SYSTEM ${CKM_DEP_INCLUDE_DIRS})
36 INCLUDE_DIRECTORIES(
37     ${PROJECT_SOURCE_DIR}/src/common
38     ..
39     .
40 )
41
42 ADD_EXECUTABLE(${TARGET_CKM_PRIVILEGED_TESTS} ${CKM_SOURCES})
43
44 TARGET_LINK_LIBRARIES(${TARGET_CKM_PRIVILEGED_TESTS}
45     ${TARGET_CKM_TEST_COMMON}
46     ${CKM_DEP_LIBRARIES}
47     ${COMMON_TARGET_TEST}
48 )
49
50 INSTALL(TARGETS ${TARGET_CKM_PRIVILEGED_TESTS} DESTINATION bin)
51 INSTALL(FILES ckm-tests-on-onlycap.sh
52     DESTINATION bin
53     PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
54                 GROUP_READ GROUP_EXECUTE
55                 WORLD_READ WORLD_EXECUTE
56 )