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

# Requires at least CMake 2.6 to configure the package.
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

SET(CXX_DISABLE_WERROR true)

INCLUDE(cmake/base.cmake)
INCLUDE(cmake/idl.cmake)
25
INCLUDE(cmake/hpp.cmake)
Guilhem Saurel's avatar
Guilhem Saurel committed
26
INCLUDE(cmake/python.cmake)
Steve Tonneau's avatar
Steve Tonneau committed
27
28
29
30

SET(PROJECT_NAME hpp-rbprm-corba)
SET(PROJECT_DESCRIPTION "Corba server for reachability based planning")

Steve Tonneau's avatar
Steve Tonneau committed
31
# Set to 1 for profiling
Pierre Fernbach's avatar
Pierre Fernbach committed
32
#add_definitions(-DPROFILE)
Steve Tonneau's avatar
Steve Tonneau committed
33

Steve Tonneau's avatar
Steve Tonneau committed
34
35
SET(CUSTOM_HEADER_DIR hpp/corbaserver/rbprm)

36
SETUP_HPP_PROJECT ()
Steve Tonneau's avatar
Steve Tonneau committed
37

38
39
LIST(APPEND PKG_CONFIG_ADDITIONAL_VARIABLES cmake_plugin)

Steve Tonneau's avatar
Steve Tonneau committed
40
41
42
43
SET(${PROJECT_NAME}_HEADERS
  include/hpp/corbaserver/rbprm/server.hh
)

Guilhem Saurel's avatar
Guilhem Saurel committed
44
FINDPYTHON()
45

Guilhem Saurel's avatar
Guilhem Saurel committed
46
47
48
ADD_DOC_DEPENDENCY("hpp-core >= 4.3")
ADD_REQUIRED_DEPENDENCY("hpp-corbaserver >= 4.3")
ADD_REQUIRED_DEPENDENCY("hpp-rbprm >= 4.3")
Steve Tonneau's avatar
Steve Tonneau committed
49
ADD_REQUIRED_DEPENDENCY("omniORB4 >= 4.1.4")
50
ADD_REQUIRED_DEPENDENCY("hpp-affordance-corba")
51
ADD_REQUIRED_DEPENDENCY("hpp-util >= 3")
52
ADD_REQUIRED_DEPENDENCY("hpp-pinocchio >= 4.3")
Steve Tonneau's avatar
Steve Tonneau committed
53

54
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/find-external/CDD")
Guilhem Saurel's avatar
Guilhem Saurel committed
55
56
find_package(CDD REQUIRED)

stevet's avatar
stevet committed
57
58
59
60
61
62
63
64
65
66
add_required_dependency("octomap >= 1.8")
if (OCTOMAP_INCLUDE_DIRS AND OCTOMAP_LIBRARY_DIRS)
        include_directories(${OCTOMAP_INCLUDE_DIRS})
        link_directories(${OCTOMAP_LIBRARY_DIRS})
  string(REPLACE "." ";" VERSION_LIST ${OCTOMAP_VERSION})
  list(GET VERSION_LIST 0 OCTOMAP_MAJOR_VERSION)
  list(GET VERSION_LIST 1 OCTOMAP_MINOR_VERSION)
  list(GET VERSION_LIST 2 OCTOMAP_PATCH_VERSION)
  add_definitions (-DOCTOMAP_MAJOR_VERSION=${OCTOMAP_MAJOR_VERSION}
                   -DOCTOMAP_MINOR_VERSION=${OCTOMAP_MINOR_VERSION}
stevet's avatar
stevet committed
67
                   -DOCTOMAP_PATCH_VERSION=${OCTOMAP_PATCH_VERSION}  -DHPP_FCL_HAVE_OCTOMAP=1)
stevet's avatar
stevet committed
68
69
70
71
72
        message(STATUS "FCL uses Octomap" ${OCTOMAP_MINOR_VERSION})
else()
        message(STATUS "FCL does not use Octomap")
endif()

Steve Tonneau's avatar
Steve Tonneau committed
73
74
75
76
77
PKG_CONFIG_APPEND_LIBS(${PROJECT_NAME})
ADD_SUBDIRECTORY(src)

CONFIG_FILES (include/hpp/corbaserver/rbprm/doc.hh)

78
SETUP_HPP_PROJECT_FINALIZE()