security_server_tests_dbus moved to separate directory
[platform/core/test/security-tests.git] / tests / 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     dbus-glib-1
28     REQUIRED)
29
30 # Targets definition
31
32 INCLUDE_DIRECTORIES(SYSTEM
33     ${SMACK_DBUS_TESTS_DEP_INCLUDE_DIRS}
34    )
35
36 SET(TARGET_SMACK_DBUS_TESTS "smack-dbus-tests")
37
38 # Sources definition
39
40 SET(SMACK_DBUS_SOURCES
41     ${PROJECT_SOURCE_DIR}/tests/smack-dbus-tests/smack_dbus_tests.cpp
42    )
43
44 INCLUDE_DIRECTORIES(
45     ${PROJECT_SOURCE_DIR}/tests/common/
46    )
47
48 ADD_DEFINITIONS("-I/usr/include/dbus-1.0")
49
50 ADD_EXECUTABLE(${TARGET_SMACK_DBUS_TESTS} ${SMACK_DBUS_SOURCES})
51
52 TARGET_LINK_LIBRARIES(${TARGET_SMACK_DBUS_TESTS}
53     ${SMACK_DBUS_TESTS_DEP_LIBRARIES}
54     dpl-test-framework
55     tests-common
56     )
57
58 # Installation
59
60 INSTALL(TARGETS ${TARGET_SMACK_DBUS_TESTS} DESTINATION /usr/bin)