-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
66 lines (50 loc) · 2 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# This file is a part of the rtt-rsb-transport project
#
# Copyright (C) 2016 Jan Moringen <[email protected]>
#
# This file may be licensed under the terms of the
# GNU Lesser General Public License Version 3 (the ``LGPL''),
# or (at your option) any later version.
#
# Software distributed under the License is distributed
# on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either
# express or implied. See the LGPL for the specific language
# governing rights and limitations.
#
# You should have received a copy of the LGPL along with this
# program. If not, go to http://www.gnu.org/licenses/lgpl.html
# or write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# The development of this software was supported by:
# CoR-Lab, Research Institute for Cognition and Robotics
# Bielefeld University
cmake_minimum_required(VERSION 2.8.3)
project(rtt_rsbcomm CXX)
set(CMAKE_BUILD_TYPE Debug)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ADDITIONAL_CFLAGS} -g")
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Dependencies
find_package(OROCOS-RTT REQUIRED)
include(${OROCOS-RTT_USE_FILE_PATH}/UseOROCOS-RTT.cmake)
# if(${OROCOS_TARGET} STREQUAL "xenomai" )
# message(STATUS "checking for xenomai")
# find_package(Xenomai REQUIRED)
# message(STATUS ${Xenomai_LIBRARY_DIRS})
# set_property(DIRECTORY ${PROJECT_SOURCE_DIR} APPEND PROPERTY COMPILE_DEFINITIONS XENOMAI)
# endif()
find_package(RSB REQUIRED)
include_directories(${RSB_INCLUDE_DIRS})
add_definitions(${RSB_CXX_FLAGS})
find_package(rst-rt REQUIRED)
include_directories(${RST-RT_INCLUDE_DIRS})
add_definitions(${RST-RT_CXX_FLAGS})
link_directories(${RST-RT_LIBRARY_DIRS})
find_package(RST 0.16 REQUIRED COMPONENTS sandbox)
include_directories(BEFORE SYSTEM ${RST_INCLUDE_DIRS})
add_definitions(${RST_CFLAGS} ${RSTSANDBOX_CFLAGS})
link_directories(${RST_LIBRARY_DIRS})
# Sub-directories
add_subdirectory(src)