Rename /tests to /ckm to align with tizen branch
[platform/core/test/security-tests.git] / src / cynara-tests / plugins / test-agent / CMakeLists.txt
1 # Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
2 #
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
6 #
7 #        http://www.apache.org/licenses/LICENSE-2.0
8 #
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.
14 #
15 # @file        CMakeLists.txt
16 # @author      Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
17 #
18
19 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.3)
20
21 INCLUDE(FindPkgConfig)
22
23 SET(CYNARA_TARGET_TEST_PLUGIN_TEST_AGENT "cynara-test-plugin-test-agent")
24
25 PKG_CHECK_MODULES(CYNARA_TARGET_TEST_PLUGIN_TEST_AGENT_DEP
26     REQUIRED
27     cynara-plugin
28     )
29
30 INCLUDE_DIRECTORIES(
31     ${CYNARA_TARGET_TEST_PLUGIN_TEST_AGENT_DEP_INCLUDE_DIRS}
32     ${PROJECT_SOURCE_DIR}/src/cynara-tests/plugins/
33     )
34
35 SET(CYNARA_TARGET_TEST_PLUGIN_TEST_AGENT_SOURCES
36     ${PROJECT_SOURCE_DIR}/src/cynara-tests/plugins/test-agent/plugin.cpp
37     ${PROJECT_SOURCE_DIR}/src/cynara-tests/plugins/plugins.cpp
38     )
39
40 ADD_DEFINITIONS("-fvisibility=default")
41
42 ADD_LIBRARY(
43     ${CYNARA_TARGET_TEST_PLUGIN_TEST_AGENT}
44     SHARED
45     ${CYNARA_TARGET_TEST_PLUGIN_TEST_AGENT_SOURCES}
46     )
47
48 TARGET_LINK_LIBRARIES(${CYNARA_TARGET_TEST_PLUGIN_TEST_AGENT}
49     ${CYNARA_TARGET_TEST_PLUGIN_TEST_AGENT_DEPS}
50     )
51
52 INSTALL(TARGETS ${CYNARA_TARGET_TEST_PLUGIN_TEST_AGENT}
53     DESTINATION /usr/lib/security-tests/cynara-tests/plugins/test-agent/)