1 # Copyright (c) 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.
16 cmake_minimum_required(VERSION 2.8.3)
18 INCLUDE(FindPkgConfig)
19 SET(INNER_TARGET_TEST "security-tests-inner-test")
21 PKG_CHECK_MODULES(INNER_TARGET_DEP
27 SET(INNER_TARGET_TEST_SOURCES
28 ${PROJECT_SOURCE_DIR}/tests/inner-test.cpp
32 INCLUDE_DIRECTORIES(SYSTEM
33 ${INNER_TARGET_DEP_INCLUDE_DIRS}
37 ${PROJECT_SOURCE_DIR}/src/framework/include/
41 ADD_EXECUTABLE(${INNER_TARGET_TEST} ${INNER_TARGET_TEST_SOURCES})
44 TARGET_LINK_LIBRARIES(${INNER_TARGET_TEST}
45 ${INNER_TARGET_DEP_LIBRARIES}
49 #place for output file
50 INSTALL(TARGETS ${INNER_TARGET_TEST}
52 PERMISSIONS OWNER_READ