This repository has been archived by the owner on May 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCMakeLists.txt
59 lines (47 loc) · 1.83 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
# Copyright 2013, 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/>.
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
INCLUDE(cmake/base.cmake)
INCLUDE(cmake/boost.cmake)
INCLUDE(cmake/lapack.cmake)
INCLUDE(cmake/eigen.cmake)
SET(PROJECT_NAME jrl-dynamics-urdf)
SET(PROJECT_DESCRIPTION "JRL dynamics URDF")
SET(PROJECT_URL "http://github.com/laas/jrl-dynamics-urdf")
SET(CXX_DISABLE_WERROR True)
SET(HEADERS
${CMAKE_SOURCE_DIR}/include/jrl/dynamics/urdf/doc.hh
${CMAKE_SOURCE_DIR}/include/jrl/dynamics/urdf/parser.hh
)
SETUP_PROJECT()
# Add main library to pkg-config file.
PKG_CONFIG_APPEND_LIBS(jrl-dynamics-urdf)
# Search for dependencies.
SEARCH_FOR_BOOST()
ADD_REQUIRED_DEPENDENCY("jrl-mal")
ADD_REQUIRED_DEPENDENCY("jrl-dynamics")
ADD_REQUIRED_DEPENDENCY("urdfdom")
ADD_REQUIRED_DEPENDENCY("urdfdom_headers")
ADD_REQUIRED_DEPENDENCY("roscpp")
ADD_REQUIRED_DEPENDENCY("resource_retriever")
# Add Boost path to include directories.
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
# Make sure Boost.Filesystem v2 is used.
ADD_DEFINITIONS(-DBOOST_FILESYSTEM_VERSION=2)
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(examples)
ADD_SUBDIRECTORY(tests)
HEADER_INSTALL("${HEADERS}")
SETUP_PROJECT_FINALIZE()