CMakeLists.txt 1.42 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
SEARCH_FOR_BOOST()
45
SEARCH_FOR_PTHREAD()
46

47
48
49
# Search for Boost.
SEARCH_FOR_EIGEN()

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

SETUP_PROJECT_FINALIZE()