f7fd464506483c68f5e4f11499ffb45865006ada
[platform/core/test/security-tests.git] / src / ode / CMakeLists.txt
1 #
2 #  Copyright (c) 2017-2018 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 Pawel Kowalski (p.kowalski2@partner.samsung.com)
18 #
19
20 MESSAGE(STATUS "")
21 MESSAGE(STATUS "Generating makefile for the ODE tests...")
22
23 FILE(GLOB  ode_tests_SRCS *.cpp)
24
25 OPTION("EMULATOR" ON)
26 IF(EMULATOR)
27     ADD_DEFINITIONS("-DEMULATOR")
28 ENDIF(EMULATOR)
29
30 ## Setup target ################################################################
31 SET(ODE_TESTS "ode-tests")
32 ADD_EXECUTABLE(${ODE_TESTS} ${ode_tests_SRCS})
33
34 ## Link libraries ##############################################################
35 PKG_CHECK_MODULES(ODE_TESTS_DEPS REQUIRED
36     ode
37     security-manager
38     dbus-1
39     libgum
40 )
41
42 INCLUDE_DIRECTORIES(SYSTEM
43     ${ODE_TESTS_DEPS_INCLUDE_DIRS}
44     ${PROJECT_SOURCE_DIR}/src/common/
45 )
46
47 TARGET_LINK_LIBRARIES(
48     ${ODE_TESTS}
49     ${ODE_TESTS_DEPS_LIBRARIES}
50     dpl-test-framework
51     tests-common
52 )
53
54 ## Install #####################################################################
55 INSTALL(TARGETS ${ODE_TESTS} DESTINATION bin)