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)
20 INCLUDE(FindPkgConfig)
23 IF (DEFINED SECURITY_MDFPP_STATE_ENABLED)
24 MESSAGE("SECURITY_MDFPP_STATE_ENABLE ENABLED !")
25 ADD_DEFINITIONS("-DSECURITY_MDFPP_STATE_ENABLE")
26 ELSE (DEFINED SECURITY_MDFPP_STATE_ENABLE)
27 MESSAGE("SECURITY_MDFPP_STATE_ENABLE DISABLED !")
28 ENDIF (DEFINED SECURITY_MDFPP_STATE_ENABLE)
31 PKG_CHECK_MODULES(CKM_DEP
41 ${PROJECT_SOURCE_DIR}/src/ckm/access_provider2.cpp
42 ${PROJECT_SOURCE_DIR}/src/ckm/main.cpp
43 ${PROJECT_SOURCE_DIR}/src/ckm/capi-testcases.cpp
44 ${PROJECT_SOURCE_DIR}/src/ckm/capi-certificate-chains.cpp
45 ${PROJECT_SOURCE_DIR}/src/ckm/capi-access_control.cpp
46 ${PROJECT_SOURCE_DIR}/src/ckm/async-api.cpp
47 ${PROJECT_SOURCE_DIR}/src/ckm/ckm-common.cpp
48 ${PROJECT_SOURCE_DIR}/src/ckm/cc-mode.cpp
49 # ${PROJECT_SOURCE_DIR}/src/ckm/password-integration.cpp
50 ${PROJECT_SOURCE_DIR}/src/ckm/system-db.cpp
51 ${PROJECT_SOURCE_DIR}/src/ckm/initial-values.cpp
52 ${PROJECT_SOURCE_DIR}/src/ckm/clean-env.cpp
53 ${PROJECT_SOURCE_DIR}/src/ckm/test-certs.cpp
54 ${PROJECT_SOURCE_DIR}/src/ckm/algo-params.cpp
57 INCLUDE_DIRECTORIES(SYSTEM ${CKM_DEP_INCLUDE_DIRS})
58 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/common/ )
59 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/ckm/ )
61 ADD_EXECUTABLE(${TARGET_CKM_TESTS} ${CKM_SOURCES})
63 TARGET_LINK_LIBRARIES(${TARGET_CKM_TESTS} ${CKM_DEP_LIBRARIES} ${COMMON_TARGET_TEST})
67 INSTALL(TARGETS ${TARGET_CKM_TESTS} DESTINATION bin)
75 DESTINATION /usr/share/ckm-test
79 SET(TARGET_C_COMPILATION_TEST "ckm-c-compilation-test")
81 SET(C_COMPILATION_SOURCES
82 ${PROJECT_SOURCE_DIR}/src/ckm/c-compilation.c
85 PKG_CHECK_MODULES(CKM_C_COMPILATION_DEP
89 ADD_EXECUTABLE(${TARGET_C_COMPILATION_TEST} ${C_COMPILATION_SOURCES})
91 TARGET_LINK_LIBRARIES(${TARGET_C_COMPILATION_TEST} ${CKM_C_COMPILATION_DEP_LIBRARIES})