Merging tizen into ckm. Stage 1.
[platform/core/test/security-tests.git] / src / smack-dbus-tests / CMakeLists.txt
1 #
2 #Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
3 #
4 #   Licensed under the Apache License, Version 2.0 (the "License");
5 #   you may not use this file except in compliance with the License.
6 #   You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #   Unless required by applicable law or agreed to in writing, software
11 #   distributed under the License is distributed on an "AS IS" BASIS,
12 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #   See the License for the specific language governing permissions and
14 #   limitations under the License.
15 #
16 # @file        CMakeLists.txt
17 # @author      Michal Eljasiewicz (m.eljasiewic@samsung.com)
18 # @brief
19 #
20
21 INCLUDE(FindPkgConfig)
22
23 # Dependencies
24 PKG_CHECK_MODULES(SMACK_DBUS_TESTS_DEP
25     libsmack
26     dbus-1
27     REQUIRED)
28
29 # Targets definition
30
31 INCLUDE_DIRECTORIES(SYSTEM
32     ${SMACK_DBUS_TESTS_DEP_INCLUDE_DIRS}
33    )
34
35 SET(TARGET_SMACK_DBUS_TESTS "smack-dbus-tests")
36
37 # Sources definition
38
39 SET(SMACK_DBUS_SOURCES
40     ${PROJECT_SOURCE_DIR}/src/smack-dbus-tests/smack_dbus_tests.cpp
41    )
42
43 INCLUDE_DIRECTORIES(
44     ${PROJECT_SOURCE_DIR}/src/common/
45    )
46
47 ADD_EXECUTABLE(${TARGET_SMACK_DBUS_TESTS} ${SMACK_DBUS_SOURCES})
48
49 TARGET_LINK_LIBRARIES(${TARGET_SMACK_DBUS_TESTS}
50     ${SMACK_DBUS_TESTS_DEP_LIBRARIES}
51     dpl-test-framework
52     tests-common
53     )
54
55 # Installation
56
57 INSTALL(TARGETS ${TARGET_SMACK_DBUS_TESTS} DESTINATION /usr/bin)