2 # Copyright (c) 2017-2018 Samsung Electronics Co., Ltd All Rights Reserved
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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
16 # @file CMakeLists.txt
17 # @author Pawel Kowalski (p.kowalski2@partner.samsung.com)
21 MESSAGE(STATUS "Generating makefile for the ODE tests...")
23 FILE(GLOB ode_tests_SRCS *.cpp)
27 ADD_DEFINITIONS("-DEMULATOR")
30 ## Setup target ################################################################
31 SET(ODE_TESTS "ode-tests")
32 ADD_EXECUTABLE(${ODE_TESTS} ${ode_tests_SRCS})
34 ## Link libraries ##############################################################
35 PKG_CHECK_MODULES(ODE_TESTS_DEPS REQUIRED
42 INCLUDE_DIRECTORIES(SYSTEM
43 ${ODE_TESTS_DEPS_INCLUDE_DIRS}
44 ${PROJECT_SOURCE_DIR}/src/common/
47 TARGET_LINK_LIBRARIES(
49 ${ODE_TESTS_DEPS_LIBRARIES}
54 ## Install #####################################################################
55 INSTALL(TARGETS ${ODE_TESTS} DESTINATION bin)