# #Copyright (c) 2013 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. # # @file CMakeLists.txt # @author Bartlomiej Grzelewski (b.grzelewski@samsung.com) # @brief # INCLUDE(FindPkgConfig) # Dependencies PKG_CHECK_MODULES(CKM_DEP libsmack key-manager dlog REQUIRED) # Targets definition SET(TARGET_CKM_TESTS "ckm-tests") SET(CKM_SOURCES ${PROJECT_SOURCE_DIR}/tests/ckm/main.cpp ${PROJECT_SOURCE_DIR}/tests/ckm/capi-testcases.cpp ) INCLUDE_DIRECTORIES(SYSTEM ${CKM_DEP_INCLUDE_DIRS}) INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/tests/common/ ) ADD_EXECUTABLE(${TARGET_CKM_TESTS} ${CKM_SOURCES}) TARGET_LINK_LIBRARIES(${TARGET_CKM_TESTS} ${CKM_DEP_LIBRARIES} tests-common) # Installation INSTALL(TARGETS ${TARGET_CKM_TESTS} DESTINATION bin) INSTALL(FILES test1801.pkcs12 DESTINATION /usr/share/ckm-test)