1 # Copyright (c) 2013-2015 Samsung Electronics Co., Ltd All Rights Reserved
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 # @file CMakeLists.txt
16 # @author Bartlomiej Grzelewski (b.grzelewski@samsung.com)
19 PKG_CHECK_MODULES(CKM_DEP
25 OPTION("TZ_BACKEND" OFF)
27 ADD_DEFINITIONS("-DTZ_BACKEND")
33 capi-access_control.cpp
34 ckm-privileged-common.cpp
40 INCLUDE_DIRECTORIES(SYSTEM ${CKM_DEP_INCLUDE_DIRS})
42 ${PROJECT_SOURCE_DIR}/src/common
47 ADD_EXECUTABLE(${TARGET_CKM_PRIVILEGED_TESTS} ${CKM_SOURCES})
49 TARGET_LINK_LIBRARIES(${TARGET_CKM_PRIVILEGED_TESTS}
50 ${TARGET_CKM_TEST_COMMON}
55 INSTALL(TARGETS ${TARGET_CKM_PRIVILEGED_TESTS} DESTINATION bin)
56 INSTALL(FILES ckm-tests-on-onlycap.sh
58 PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
59 GROUP_READ GROUP_EXECUTE
60 WORLD_READ WORLD_EXECUTE