CMakeLists.txt 2 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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.
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

INCLUDE(cmake/base.cmake)
Thomas Moulard's avatar
Thomas Moulard committed
20
INCLUDE(cmake/boost.cmake)
21
22

SET(PROJECT_NAME hpp-util)
Thomas Moulard's avatar
Thomas Moulard committed
23
24
SET(PROJECT_DESCRIPTION "Debugging tools for the HPP project.")
SET(PROJECT_URL "http://github.com/laas/hpp-util")
25

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

28
29
SETUP_PROJECT()

30
31
32
33
34
35
# Activate logging machinery 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()

Thomas Moulard's avatar
Thomas Moulard committed
36
# Search for Boost.
Thomas Moulard's avatar
Thomas Moulard committed
37
38
39
SET(BOOST_COMPONENTS filesystem system)
SEARCH_FOR_BOOST()

Thomas Moulard's avatar
Thomas Moulard committed
40

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

Thomas Moulard's avatar
Thomas Moulard committed
57
58
59
# Add Boost path to include directories.
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})

Joseph Mirabel's avatar
Joseph Mirabel committed
60
61
ADD_REQUIRED_DEPENDENCY("tinyxml >= 2.6")

62
63
64
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(tests)

Joseph Mirabel's avatar
Joseph Mirabel committed
65
PKG_CONFIG_APPEND_LIBS("hpp-util")
66
PKG_CONFIG_APPEND_BOOST_LIBS(${BOOST_COMPONENTS})
Joseph Mirabel's avatar
Joseph Mirabel committed
67

68
SETUP_PROJECT_FINALIZE()