forked from roboptim/roboptim-trajectory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
123 lines (108 loc) · 5.11 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# Copyright 2010, Thomas Moulard, LAAS-CNRS
#
# This file is part of roboptim-core.
# roboptim-core is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# roboptim-core is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Lesser Public License for more details.
# You should have received a copy of the GNU Lesser General Public License
# along with roboptim-core. If not, see <http://www.gnu.org/licenses/>.
# Requires at least CMake 2.6 to configure the package.
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
INCLUDE(cmake/base.cmake)
INCLUDE(cmake/boost.cmake)
INCLUDE(cmake/cpack.cmake)
SET(PROJECT_NAME roboptim-trajectory)
SET(PROJECT_DESCRIPTION "RobOptim trajectory")
SET(PROJECT_URL "http://github.com/roboptim/roboptim-trajectory")
# Use MathJax for Doxygen formulae
SET(DOXYGEN_USE_MATHJAX "YES")
SET(CSD ${CMAKE_SOURCE_DIR})
SET(HEADERS
${CSD}/include/roboptim/trajectory/anthropomorphic-cost-function.hh
${CSD}/include/roboptim/trajectory/anthropomorphic-cost-function.hxx
${CSD}/include/roboptim/trajectory/b-spline.hh
${CSD}/include/roboptim/trajectory/b-spline.hxx
${CSD}/include/roboptim/trajectory/constrained-b-spline.hh
${CSD}/include/roboptim/trajectory/constrained-b-spline.hxx
${CSD}/include/roboptim/trajectory/constraints-over-splines.hh
${CSD}/include/roboptim/trajectory/constraints-over-splines.hxx
${CSD}/include/roboptim/trajectory/cubic-b-spline.hh
${CSD}/include/roboptim/trajectory/cubic-b-spline.hxx
${CSD}/include/roboptim/trajectory/free-time-trajectory.hh
${CSD}/include/roboptim/trajectory/free-time-trajectory.hxx
${CSD}/include/roboptim/trajectory/freeze.hh
${CSD}/include/roboptim/trajectory/freeze.hxx
${CSD}/include/roboptim/trajectory/frontal-speed.hh
${CSD}/include/roboptim/trajectory/fwd.hh
${CSD}/include/roboptim/trajectory/jerk-over-splines-factory.hh
${CSD}/include/roboptim/trajectory/jerk-over-splines-factory.hxx
${CSD}/include/roboptim/trajectory/limit-omega.hh
${CSD}/include/roboptim/trajectory/limit-omega.hxx
${CSD}/include/roboptim/trajectory/limit-speed.hh
${CSD}/include/roboptim/trajectory/limit-speed.hxx
${CSD}/include/roboptim/trajectory/orthogonal-speed.hh
${CSD}/include/roboptim/trajectory/polynomial.hh
${CSD}/include/roboptim/trajectory/polynomial.hxx
${CSD}/include/roboptim/trajectory/polynomial-3.hh
${CSD}/include/roboptim/trajectory/problem-over-splines-factory.hh
${CSD}/include/roboptim/trajectory/problem-over-splines-factory.hxx
${CSD}/include/roboptim/trajectory/spline-length.hh
${CSD}/include/roboptim/trajectory/stable-point-state-function.hh
${CSD}/include/roboptim/trajectory/stable-point-state-function.hxx
${CSD}/include/roboptim/trajectory/stable-time-point.hh
${CSD}/include/roboptim/trajectory/state-function.hh
${CSD}/include/roboptim/trajectory/state-function.hxx
${CSD}/include/roboptim/trajectory/sys.hh
${CSD}/include/roboptim/trajectory/trajectory-cost.hh
${CSD}/include/roboptim/trajectory/trajectory-cost.hxx
${CSD}/include/roboptim/trajectory/trajectory-sum-cost.hh
${CSD}/include/roboptim/trajectory/trajectory-sum-cost.hxx
${CSD}/include/roboptim/trajectory/trajectory.hh
${CSD}/include/roboptim/trajectory/trajectory.hxx
${CSD}/include/roboptim/trajectory/vector-interpolation.hh
${CSD}/include/roboptim/trajectory/vector-interpolation.hxx
${CSD}/include/roboptim/trajectory/visualization/limit-speed.hh
${CSD}/include/roboptim/trajectory/visualization/speed.hh
${CSD}/include/roboptim/trajectory/visualization/trajectory.hh
${CSD}/include/roboptim/trajectory/visualization/matplotlib.hh
${CSD}/include/roboptim/trajectory/visualization/b-spline-matplotlib.hh
${CSD}/include/roboptim/trajectory/visualization/cubic-b-spline-matplotlib.hh
${CSD}/include/roboptim/trajectory.hh
)
SET(PKG_CONFIG_ADDITIONAL_VARIABLES plugindir ${PKG_CONFIG_ADDITIONAL_VARIABLES})
SETUP_PROJECT()
# Add main library to pkg-config file.
PKG_CONFIG_APPEND_LIBS(roboptim-trajectory)
# Search for dependencies.
SET(BOOST_COMPONENTS filesystem system unit_test_framework serialization)
SEARCH_FOR_BOOST()
# Libtool dynamic loading
# This project does not use Libtool directly but still uses ltdl for
# plug-in loading.
INCLUDE(CheckIncludeFileCXX)
CHECK_INCLUDE_FILE_CXX(ltdl.h LTDL_H_FOUND)
IF (NOT LTDL_H_FOUND)
MESSAGE(FATAL_ERROR
"Failed to find ltdl.h, check that Libtool ltdl is installed.")
ENDIF()
#FIXME: check that libltdl.so is available.
# Enable SIGFPE signal to detect arithmetic errors
OPTION(ENABLE_SIGFPE "Enable floating-point exceptions" OFF)
IF(ENABLE_SIGFPE)
ADD_DEFINITIONS(-DENABLE_SIGFPE)
ENDIF()
ADD_REQUIRED_DEPENDENCY("roboptim-core >= 3.2")
ADD_REQUIRED_DEPENDENCY("eigen3 >= 3.2.0")
# For tests
ADD_OPTIONAL_DEPENDENCY("roboptim-core-plugin-ipopt >= 3.2")
HEADER_INSTALL("${HEADERS}")
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(tests)
SETUP_PROJECT_FINALIZE()
SETUP_PROJECT_CPACK()