CMakeLists.txt 2.58 KB
Newer Older
florent's avatar
florent committed
1
#
Florent Lamiraux's avatar
Florent Lamiraux committed
2
3
# Copyright (c) 2010, 2011 CNRS
# Authors: Florent Lamiraux
florent's avatar
florent committed
4
5
#
#
Florent Lamiraux's avatar
Florent Lamiraux committed
6
7
8
9
10
# This file is part of hpp-core
# hpp-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.
florent's avatar
florent committed
11
#
Florent Lamiraux's avatar
Florent Lamiraux committed
12
13
14
15
16
17
18
19
20
# hpp-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
# hpp-core  If not, see
# <http://www.gnu.org/licenses/>.

CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
florent's avatar
florent committed
21

Florent Lamiraux's avatar
Florent Lamiraux committed
22
23
24
SET(CXX_DISABLE_WERROR TRUE)
INCLUDE(cmake/base.cmake)
INCLUDE(cmake/cpack.cmake)
florent's avatar
florent committed
25

Florent Lamiraux's avatar
Florent Lamiraux committed
26
27
SET(PROJECT_NAME hpp-core)
SET(PROJECT_DESCRIPTION
Florent Lamiraux's avatar
Florent Lamiraux committed
28
  "Implement basic classes for canonical path planning for kinematic chains."
Florent Lamiraux's avatar
Florent Lamiraux committed
29
30
  )
SET(PROJECT_URL "")
florent's avatar
florent committed
31

Florent Lamiraux's avatar
Florent Lamiraux committed
32
33
# Where to compile shared objects
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
florent's avatar
florent committed
34

Florent Lamiraux's avatar
Florent Lamiraux committed
35
SETUP_PROJECT()
florent's avatar
florent committed
36

Florent Lamiraux's avatar
Florent Lamiraux committed
37
# Activate hpp-util logging if requested
38
SET (HPP_DEBUG FALSE CACHE BOOL "trigger hpp-util debug output")
Florent Lamiraux's avatar
Florent Lamiraux committed
39
40
41
IF (HPP_DEBUG)
  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHPP_DEBUG")
ENDIF()
florent's avatar
florent committed
42

Florent Lamiraux's avatar
Florent Lamiraux committed
43
44
# Declare Headers
SET(${PROJECT_NAME}_HEADERS
45
46
47
48
49
50
51
52
53
54
  include/hpp/core/configuration-shooter.hh
  include/hpp/core/config-projector.hh
  include/hpp/core/connected-component.hh
  include/hpp/core/constraint.hh
  include/hpp/core/constraint-set.hh
  include/hpp/core/differentiable-function.hh
  include/hpp/core/diffusing-planner.hh
  include/hpp/core/discretized-collision-checking.hh
  include/hpp/core/distance.hh
  include/hpp/core/edge.hh
55
  include/hpp/core/fwd.hh
56
57
58
59
60
61
62
63
  include/hpp/core/locked-dof.hh
  include/hpp/core/node.hh
  include/hpp/core/path.hh
  include/hpp/core/path-optimizer.hh
  include/hpp/core/path-planner.hh
  include/hpp/core/path-validation.hh
  include/hpp/core/path-vector.hh
  include/hpp/core/plan-and-optimize.hh
Florent Lamiraux's avatar
Florent Lamiraux committed
64
  include/hpp/core/problem.hh
65
66
67
68
69
70
71
  include/hpp/core/problem-solver.hh
  include/hpp/core/random-shortcut.hh
  include/hpp/core/roadmap.hh
  include/hpp/core/steering-method.hh
  include/hpp/core/steering-method-straight.hh
  include/hpp/core/straight-path.hh
  include/hpp/core/weighed-distance.hh
Florent Lamiraux's avatar
Florent Lamiraux committed
72
)
florent's avatar
florent committed
73

74
75
ADD_REQUIRED_DEPENDENCY("hpp-util >= 3")
ADD_REQUIRED_DEPENDENCY("hpp-model >= 3")
76
ADD_REQUIRED_DEPENDENCY("roboptim-trajectory >= 1.0")
florent's avatar
florent committed
77

Florent Lamiraux's avatar
Florent Lamiraux committed
78
79
# Add dependency toward hpp-model library in pkg-config file.
PKG_CONFIG_APPEND_LIBS("hpp-core")
florent's avatar
florent committed
80
81
82

ADD_SUBDIRECTORY(src)

Florent Lamiraux's avatar
Florent Lamiraux committed
83
84
SETUP_PROJECT_FINALIZE()
SETUP_PROJECT_CPACK()