-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrtt-core-extensions-config.cmake.in
67 lines (50 loc) · 2.33 KB
/
rtt-core-extensions-config.cmake.in
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
67
# This file is a part of CoSimA (CogIMon) project
#
# Copyright (C) 2016 by Dennis Leroy Wigand <dwigand at cor-lab dot uni-bielefeld dot de>
#
# 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:
# European Community’s Horizon 2020 robotics program ICT-23-2014
# under grant agreement 644727 - CogIMon
# CoR-Lab, Research Institute for Cognition and Robotics
# Bielefeld University
#
get_filename_component(@PROJECT_NAME_UPPER@_CONFIG_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
set(@PROJECT_NAME_UPPER@_INCLUDE_DIRS "${@PROJECT_NAME_UPPER@_CONFIG_DIR}/../../include/@CMAKE_PROJECT_NAME@@INSTALL_SUFFIX@/")
set(@PROJECT_NAME_UPPER@_LIBRARY_DIRS "${@PROJECT_NAME_UPPER@_CONFIG_DIR}/../../lib")
set(@PROJECT_NAME_UPPER@_LIBRARIES @LIBRARY_NAME@)
set(@PROJECT_NAME_UPPER@_VERSION @INSTALL_SUFFIX@)
set(@PROJECT_NAME_UPPER@_VERSION_MAJOR @INSTALL_MAJOR@)
set(@PROJECT_NAME_UPPER@_VERSION_MINOR @INSTALL_MINOR@)
set(@PROJECT_NAME_UPPER@_VERSION_STRING @INSTALL_SUFFIX@)
# Eigen
find_package(Eigen3)
add_definitions(${EIGEN3_DEFINITIONS})
include_directories(${EIGEN3_INCLUDE_DIR} ${EIGEN3_INCLUDE_DIRS})
# Orocos
find_package(OROCOS-RTT REQUIRED COMPONENTS rtt-scripting rtt-typekit)
if (NOT OROCOS-RTT_FOUND)
message (FATAL_ERROR "\nCould not find Orocos-RTT. Please use the shell command\n 'source orocos_toolchain/env.sh' and then run cmake again.")
endif()
include(${OROCOS-RTT_USE_FILE_PATH}/UseOROCOS-RTT.cmake )
include_directories(${USE_OROCOS_INCLUDE_DIRS})
# Rst-rt
find_package(RST-RT REQUIRED)
message(STATUS "RST-RT version: ${RST-RT_VERSION}")
include_directories(BEFORE SYSTEM ${RST-RT_INCLUDE_DIRS})
add_definitions(${RST-RT_CFLAGS})
link_directories(${RST-RT_LIBRARY_DIR} ${RST-RT_LIBRARY_DIRS})
# Boost TODO