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

SET(PROJECT_NAME hpp-util)
Thomas Moulard's avatar
Thomas Moulard committed
22
SET(PROJECT_VERSION 0.4c)
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
26
27

SETUP_PROJECT()

Thomas Moulard's avatar
Thomas Moulard committed
28
SET(PKG_CONFIG_LIBS "${PKG_CONFIG_LIBS} -lhpp-util")
Thomas Moulard's avatar
Thomas Moulard committed
29

Thomas Moulard's avatar
Thomas Moulard committed
30
# Search for Boost.
Thomas Moulard's avatar
Thomas Moulard committed
31
32
SET(Boost_USE_STATIC_LIBS OFF)
SET(Boost_USE_MULTITHREAD ON)
Thomas Moulard's avatar
Thomas Moulard committed
33
34
FIND_PACKAGE(Boost 1.34 COMPONENTS filesystem system)

35
36
37
38
39
40
41
42
43
44
45
SET(${PROJECT_NAME}_HEADERS
  include/hpp/util/assertion.hh
  include/hpp/util/debug.hh
  include/hpp/util/deprecated.hh
  include/hpp/util/exception.hh
  include/hpp/util/indent.hh
  include/hpp/util/portability.hh
  include/hpp/util/timer.hh
  include/hpp/util/version.hh
)

Thomas Moulard's avatar
Thomas Moulard committed
46
47
48
# Add Boost path to include directories.
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})

49
50
51
52
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(tests)

SETUP_PROJECT_FINALIZE()