This repository was archived by the owner on Nov 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
64 lines (52 loc) · 1.94 KB
/
Copy pathCMakeLists.txt
File metadata and controls
64 lines (52 loc) · 1.94 KB
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
# Copyright 2010, 2011, Florent Lamiraux, Thomas Moulard (CNRS/LAAS)
#
# This file is part of hpp-gik.
# sot-motion-planner 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.
#
# sot-motion-planner 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
# sot-motion-planner. If not, see <http://www.gnu.org/licenses/>.
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
INCLUDE(cmake/base.cmake)
INCLUDE(cmake/boost.cmake)
INCLUDE(cmake/cpack.cmake)
SET(PROJECT_NAME hpp-gik)
SET(PROJECT_DESCRIPTION "Generalized inversed kinematics")
SET(PROJECT_URL "http://github.com/laas/hpp-gik")
SET(CXX_DISABLE_WERROR 1)
SETUP_PROJECT()
# Add option to disable tests.
SET(DISABLE_TESTS ON CACHE BOOL
"Disable tests (and remove the dependency toward HRP-2 confidential packages)")
# Add option to use hpp-util log
SET(HPP_DEBUG OFF CACHE BOOL "Log data into files.")
IF(HPP_DEBUG)
ADD_DEFINITIONS(-DHPP_DEBUG)
ENDIF()
# Search for dependencies.
ADD_REQUIRED_DEPENDENCY("jrl-mal >= 1.8.0")
ADD_REQUIRED_DEPENDENCY("abstract-robot-dynamics")
ADD_REQUIRED_DEPENDENCY("abstract-gik-task >= 2.4")
ADD_REQUIRED_DEPENDENCY("hpp-util >= 0.4")
IF(NOT DISABLE_TESTS)
ADD_REQUIRED_DEPENDENCY("hrp2-dynamics >= 1.4.4")
ENDIF()
# Search for dependencies.
# Boost
SEARCH_FOR_BOOST()
# Add dependency toward hpp-gik library in pkg-config file.
PKG_CONFIG_APPEND_LIBS("hpp-gik")
# Add subdirectories.
ADD_SUBDIRECTORY(include)
ADD_SUBDIRECTORY(src)
IF(NOT DISABLE_TESTS)
ADD_SUBDIRECTORY(tests)
ENDIF()
SETUP_PROJECT_FINALIZE()
SETUP_PROJECT_CPACK()