CMakeLists.txt 1.76 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
PKG_CONFIG_APPEND_LIBS("hpp-util")
Thomas Moulard's avatar
Thomas Moulard committed
37

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

Thomas Moulard's avatar
Thomas Moulard committed
42

43
44
45
SET(${PROJECT_NAME}_HEADERS
  include/hpp/util/assertion.hh
  include/hpp/util/debug.hh
Thomas Moulard's avatar
Thomas Moulard committed
46
  include/hpp/util/doc.hh
47
48
  include/hpp/util/exception.hh
  include/hpp/util/indent.hh
49
  include/hpp/util/kitelab.hh
50
51
52
53
54
  include/hpp/util/portability.hh
  include/hpp/util/timer.hh
  include/hpp/util/version.hh
)

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

58
59
60
61
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(tests)

SETUP_PROJECT_FINALIZE()