CMakeLists.txt 1.17 KB
Newer Older
Thomas Moulard's avatar
Thomas Moulard committed
1
# Copyright 2010, 2011, Florent Lamiraux, Thomas Moulard, JRL, CNRS/AIST
florent's avatar
florent committed
2

Guilhem Saurel's avatar
Guilhem Saurel committed
3
4
5
6
7
8
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

SET(PROJECT_NAMESPACE stack-of-tasks)
SET(PROJECT_NAME dynamic-graph-python)
SET(PROJECT_DESCRIPTION "Dynamic graph library Python bindings")
SET(PROJECT_URL "http://github.com/${PROJECT_NAMESPACE}/${PROJECT_NAME}")
florent's avatar
florent committed
9

10
INCLUDE(cmake/base.cmake)
Thomas Moulard's avatar
Thomas Moulard committed
11
INCLUDE(cmake/boost.cmake)
12
INCLUDE(cmake/eigen.cmake)
Thomas Moulard's avatar
Thomas Moulard committed
13
INCLUDE(cmake/pthread.cmake)
Guilhem Saurel's avatar
Guilhem Saurel committed
14
include(cmake/python.cmake)
15
include(cmake/test.cmake)
Guilhem Saurel's avatar
Guilhem Saurel committed
16
INCLUDE(cmake/sphinx.cmake)
florent's avatar
florent committed
17

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

20
SET(CUSTOM_HEADER_DIR "dynamic-graph/python")
florent's avatar
florent committed
21

22
23
SET(PKG_CONFIG_ADDITIONAL_VARIABLES plugindir ${PKG_CONFIG_ADDITIONAL_VARIABLES})

Guilhem Saurel's avatar
Guilhem Saurel committed
24
PROJECT(${PROJECT_NAME} CXX)
florent's avatar
florent committed
25

26
FINDPYTHON(2.7 EXACT REQUIRED)
Guilhem Saurel's avatar
Guilhem Saurel committed
27

Thomas Moulard's avatar
Thomas Moulard committed
28
# Trigger dependency to dynamic-graph.
29
ADD_REQUIRED_DEPENDENCY("dynamic-graph >= 3.0.0")
florent's avatar
florent committed
30

31
32
33
# Add dependency toward dynamic graph library in pkg-config file.
PKG_CONFIG_APPEND_LIBS("dynamic-graph-python")

34
# Search for Boost.
35
SET(BOOST_COMPONENTS python filesystem system thread program_options unit_test_framework)
36
SEARCH_FOR_BOOST()
37
SEARCH_FOR_EIGEN()
38

florent's avatar
florent committed
39
ADD_SUBDIRECTORY(src)
40
ADD_SUBDIRECTORY(include)
Thomas Moulard's avatar
Thomas Moulard committed
41
ADD_SUBDIRECTORY(doc)
42
ADD_SUBDIRECTORY(unitTesting)