This repository has been archived by the owner on Nov 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
71 lines (57 loc) · 2.43 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
# Copyright 2011, Sebastien Dalibard, CNRS
#
# This file is part of hpp-constrained.
# hpp-constrained 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.
#
# hpp-constrained 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
# hpp-constrained. 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 hpp-constrained)
SET(PROJECT_DESCRIPTION "Package dedicated to motion planning on constrained manifolds.")
SET(PROJECT_URL "https://github.com/laas/hpp-constrained")
SET(${PROJECT_NAME}_HEADERS
${CMAKE_SOURCE_DIR}/include/hpp/constrained/config-optimizer.hh
${CMAKE_SOURCE_DIR}/include/hpp/constrained/config-extendor.hh
${CMAKE_SOURCE_DIR}/include/hpp/constrained/config-projector.hh
${CMAKE_SOURCE_DIR}/include/hpp/constrained/config-shooter.hh
${CMAKE_SOURCE_DIR}/include/hpp/constrained/fwd.hh
${CMAKE_SOURCE_DIR}/include/hpp/constrained/goal-config-generator.hh
${CMAKE_SOURCE_DIR}/include/hpp/constrained/kws-constraint.hh
${CMAKE_SOURCE_DIR}/include/hpp/constrained/roadmap-builder.hh
)
SET(CXX_DISABLE_WERROR 1)
SETUP_PROJECT()
# Activate hpp-util logging if requested
SET (HPP_DEBUG FALSE CACHE BOOL "trigger hpp-util debug output")
IF (HPP_DEBUG)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHPP_DEBUG")
ENDIF()
ADD_REQUIRED_DEPENDENCY("hpp-model >= 2.3")
ADD_REQUIRED_DEPENDENCY("hpp-gik >= 2.10")
ADD_REQUIRED_DEPENDENCY("hpp-util >= 0.7")
ADD_DOC_DEPENDENCY("abstract-gik-task >= 2.7")
# Add dependency toward hpp-constrained library in pkg-config file.
PKG_CONFIG_APPEND_LIBS("hpp-constrained")
# Search for Boost.
SET(BOOST_COMPONENTS
filesystem system thread program_options unit_test_framework)
SEARCH_FOR_BOOST()
ADD_SUBDIRECTORY(src)
# Documentation produced by doxygen
INCLUDE(FindDoxygen)
IF(DOXYGEN_FOUND)
add_subdirectory(doc)
ENDIF(DOXYGEN_FOUND)
SETUP_PROJECT_FINALIZE()
SETUP_PROJECT_CPACK()