CMakeLists.txt 1.94 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Copyright (C) 2010 Florent Lamiraux, Thomas Moulard, JRL, CNRS/AIST.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program 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 Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

# Requires at least CMake 2.6 to configure the package.
Guilhem Saurel's avatar
Guilhem Saurel committed
17
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
18
19

SET(PROJECT_NAME hpp-util)
Thomas Moulard's avatar
Thomas Moulard committed
20
SET(PROJECT_DESCRIPTION "Debugging tools for the HPP project.")
21
SET(PROJECT_URL "http://github.com/humanoid-path-planner/hpp-util")
22

Guilhem Saurel's avatar
Guilhem Saurel committed
23
24
25
INCLUDE(cmake/hpp.cmake)
INCLUDE(cmake/boost.cmake)

Thomas Moulard's avatar
Thomas Moulard committed
26
27
SET(CXX_DISABLE_WERROR 1)

Guilhem Saurel's avatar
Guilhem Saurel committed
28
29
COMPUTE_PROJECT_ARGS(PROJECT_ARGS LANGUAGES CXX)
PROJECT(${PROJECT_NAME} ${PROJECT_ARGS})
30

Thomas Moulard's avatar
Thomas Moulard committed
31
# Search for Boost.
Thomas Moulard's avatar
Thomas Moulard committed
32
33
34
SET(BOOST_COMPONENTS filesystem system)
SEARCH_FOR_BOOST()

Thomas Moulard's avatar
Thomas Moulard committed
35

36
37
38
SET(${PROJECT_NAME}_HEADERS
  include/hpp/util/assertion.hh
  include/hpp/util/debug.hh
Thomas Moulard's avatar
Thomas Moulard committed
39
  include/hpp/util/doc.hh
40
  include/hpp/util/exception.hh
41
  include/hpp/util/exception-factory.hh
42
  include/hpp/util/indent.hh
Florent Lamiraux's avatar
Florent Lamiraux committed
43
  include/hpp/util/pointer.hh
44
45
46
  include/hpp/util/portability.hh
  include/hpp/util/timer.hh
  include/hpp/util/version.hh
Joseph Mirabel's avatar
Joseph Mirabel committed
47
48
49
  include/hpp/util/parser.hh
  include/hpp/util/factories/ignoretag.hh
  include/hpp/util/factories/sequence.hh
50
51
)

Thomas Moulard's avatar
Thomas Moulard committed
52
53
54
# Add Boost path to include directories.
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})

55
56
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/find-external/TinyXML)
FIND_PACKAGE(TinyXML REQUIRED)
Joseph Mirabel's avatar
Joseph Mirabel committed
57

58
59
60
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(tests)

Joseph Mirabel's avatar
Joseph Mirabel committed
61
PKG_CONFIG_APPEND_LIBS("hpp-util")
62
PKG_CONFIG_APPEND_BOOST_LIBS(${BOOST_COMPONENTS})