CMakeLists.txt 1.49 KB
Newer Older
Thomas Moulard's avatar
Thomas Moulard committed
1
# Copyright 2010, Olivier Stasse, JRL, CNRS/AIST
2 3 4

CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

5
INCLUDE(cmake/base.cmake)
6
INCLUDE(cmake/boost.cmake)
7
INCLUDE(cmake/eigen.cmake)
8
INCLUDE(cmake/pthread.cmake)
9

Guilhem Saurel's avatar
Guilhem Saurel committed
10
SET(PROJECT_ORG stack-of-tasks)
11 12
SET(PROJECT_NAME dynamic-graph)
SET(PROJECT_DESCRIPTION "Dynamic graph library")
Guilhem Saurel's avatar
Guilhem Saurel committed
13
SET(PROJECT_URL "http://github.com/${PROJECT_ORG}/${PROJECT_NAME}")
14
SET(PROJECT_SUFFIX "-v3")
15

16 17
SET(CUSTOM_HEADER_DIR "${PROJECT_NAME}")

Guilhem Saurel's avatar
Guilhem Saurel committed
18 19
SET(DOXYGEN_USE_MATHJAX YES)

20
# Defines paths.
21
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
22

23
SETUP_PROJECT()
24

25 26 27 28 29 30 31
# Add configuration headers for plug-ins.
GENERATE_CONFIGURATION_HEADER(
  ${HEADER_DIR} config-tracer.hh DG_TRACER tracer_EXPORTS)
GENERATE_CONFIGURATION_HEADER(
  ${HEADER_DIR}
  config-tracer-real-time.hh DG_TRACERREALTIME tracer_real_time_EXPORTS)

32 33
# FIXME: to be changed into lib/dynamic-graph
# to avoid name collision when installing dynamic-graph in /usr.
34
SET(PLUGINDIR "${CMAKE_INSTALL_FULL_LIBDIR}/plugin")
35

36 37
# Add extra keys to pkg-config file to export the location of the
# plug-in directory in a robust manner.
38
SET(PKG_CONFIG_EXTRA "plugindir=${PLUGINDIR}")
39

40
# Add dependency toward dynamic graph library in pkg-config file.
Guilhem Saurel's avatar
Guilhem Saurel committed
41
PKG_CONFIG_APPEND_LIBS(${PROJECT_NAME})
42

43
# Search for Boost.
44
SET(BOOST_COMPONENTS serialization system unit_test_framework thread)
45
SEARCH_FOR_BOOST()
46
SEARCH_FOR_PTHREAD()
47

48 49 50
# Search for Boost.
SEARCH_FOR_EIGEN()

51
ADD_SUBDIRECTORY(src)
Guilhem Saurel's avatar
Guilhem Saurel committed
52
ADD_SUBDIRECTORY(include/${PROJECT_NAME})
53
ADD_SUBDIRECTORY(tests)
54 55

SETUP_PROJECT_FINALIZE()