# Copyright (c) 2015-2017 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. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # cmake_minimum_required(VERSION 2.8.3) INCLUDE(FindPkgConfig) SET(INNER_TARGET_TEST "security-tests-inner-test") PKG_CHECK_MODULES(INNER_TARGET_DEP REQUIRED glib-2.0 ) FIND_PACKAGE (Threads) #files to compile SET(INNER_TARGET_TEST_SOURCES ${PROJECT_SOURCE_DIR}/tests/inner-test.cpp ${PROJECT_SOURCE_DIR}/tests/common/test_cases_timeout.cpp ${PROJECT_SOURCE_DIR}/tests/framework/test_cases_deferred.cpp ) #header directories INCLUDE_DIRECTORIES(SYSTEM ${INNER_TARGET_DEP_INCLUDE_DIRS} ) INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/src/framework/include/ ${PROJECT_SOURCE_DIR}/src/ ) #output format ADD_EXECUTABLE(${INNER_TARGET_TEST} ${INNER_TARGET_TEST_SOURCES}) #linker directories TARGET_LINK_LIBRARIES(${INNER_TARGET_TEST} ${INNER_TARGET_DEP_LIBRARIES} tests-common dpl-test-framework ${CMAKE_THREAD_LIBS_INIT} ) #place for output file INSTALL(TARGETS ${INNER_TARGET_TEST} DESTINATION /usr/bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE ) ADD_SUBDIRECTORY(cleanup)