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

CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

SET(CXX_DISABLE_WERROR TRUE)
INCLUDE(cmake/base.cmake)
24
INCLUDE(cmake/boost.cmake)
Florent Lamiraux's avatar
Florent Lamiraux committed
25
INCLUDE(cmake/eigen.cmake)
26
27
28
29
30
31
32
33
34
35
36
37
38
INCLUDE(cmake/cpack.cmake)

SET(PROJECT_NAME hpp-model)
SET(PROJECT_DESCRIPTION
  "Implementation of hybrid geometric and dynamic humanoid robots"
  )
SET(PROJECT_URL "")

# Where to compile shared objects
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)

SETUP_PROJECT()

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

Florent Lamiraux's avatar
Florent Lamiraux committed
45
# Declare headers
46
SET(${PROJECT_NAME}_HEADERS
Florent Lamiraux's avatar
Florent Lamiraux committed
47
  include/hpp/model/body.hh
48
  include/hpp/model/children-iterator.hh
Florent Lamiraux's avatar
Florent Lamiraux committed
49
50
  include/hpp/model/collision-object.hh
  include/hpp/model/configuration.hh
51
  include/hpp/model/device.hh
Florent Lamiraux's avatar
Florent Lamiraux committed
52
  include/hpp/model/distance-result.hh
53
  include/hpp/model/extra-config-space.hh
Florent Lamiraux's avatar
Florent Lamiraux committed
54
  include/hpp/model/fcl-to-eigen.hh
55
  include/hpp/model/fwd.hh
Florent Lamiraux's avatar
Florent Lamiraux committed
56
  include/hpp/model/humanoid-robot.hh
57
  include/hpp/model/joint.hh
Florent Lamiraux's avatar
Florent Lamiraux committed
58
59
60
  include/hpp/model/joint-configuration.hh
  include/hpp/model/object-factory.hh
  include/hpp/model/object-iterator.hh
61
  include/hpp/model/gripper.hh
62
  include/hpp/model/center-of-mass-computation.hh
63
  include/hpp/model/debug.hh
Joseph Mirabel's avatar
Joseph Mirabel committed
64
  include/hpp/model/eigen.hh
65
66
67
  )

# Declare dependencies
68
SEARCH_FOR_BOOST()
Florent Lamiraux's avatar
Florent Lamiraux committed
69
70

ADD_REQUIRED_DEPENDENCY("eigen3 >= 3.2")
71
ADD_REQUIRED_DEPENDENCY("hpp-util >= 0.7")
72
ADD_REQUIRED_DEPENDENCY("hpp-fcl >= 0.2.9")
73

Florent Lamiraux's avatar
Florent Lamiraux committed
74
75
76
# Compile documentation
CONFIGURE_FILE(doc/main.hh.in doc/main.hh)

77
78
79
80
# Add dependency toward hpp-model library in pkg-config file.
PKG_CONFIG_APPEND_LIBS("hpp-model")

ADD_SUBDIRECTORY(src)
81
ADD_SUBDIRECTORY(tests)
82
83
84

SETUP_PROJECT_FINALIZE()
SETUP_PROJECT_CPACK()