# #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 security-server dbus-1 vconf REQUIRED) # Targets definition SET(CKM_SOURCES ${PROJECT_SOURCE_DIR}/tests/ckm/access_provider2.cpp ${PROJECT_SOURCE_DIR}/tests/ckm/main.cpp ${PROJECT_SOURCE_DIR}/tests/ckm/capi-testcases.cpp ${PROJECT_SOURCE_DIR}/tests/ckm/capi-certificate-chains.cpp ${PROJECT_SOURCE_DIR}/tests/ckm/capi-access_control.cpp ${PROJECT_SOURCE_DIR}/tests/ckm/async-api.cpp ${PROJECT_SOURCE_DIR}/tests/ckm/ckm-common.cpp ${PROJECT_SOURCE_DIR}/tests/ckm/cc-mode.cpp ${PROJECT_SOURCE_DIR}/tests/ckm/password-integration.cpp ${PROJECT_SOURCE_DIR}/tests/ckm/clean-env.cpp ) INCLUDE_DIRECTORIES(SYSTEM ${CKM_DEP_INCLUDE_DIRS}) INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/tests/common/ ) INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/tests/ckm/ ) ADD_EXECUTABLE(${TARGET_CKM_TESTS} ${CKM_SOURCES}) TARGET_LINK_LIBRARIES(${TARGET_CKM_TESTS} ${CKM_DEP_LIBRARIES} ${COMMON_TARGET_TEST}) # Installation INSTALL(TARGETS ${TARGET_CKM_TESTS} DESTINATION bin) INSTALL(FILES test1801.pkcs12 pkcs.p12 capi-t3096.p12 DESTINATION /usr/share/ckm-test )