CMakeLists.txt 1.22 KB
Newer Older
Guilhem Saurel's avatar
Guilhem Saurel committed
1
# Copyright 2010-2019, Florent Lamiraux, Thomas Moulard, Guilhem Saurel, JRL, CNRS/AIST, LAAS-CNRS
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)
Guilhem Saurel's avatar
Guilhem Saurel committed
13
include(cmake/python.cmake)
14
include(cmake/test.cmake)
Guilhem Saurel's avatar
Guilhem Saurel committed
15
INCLUDE(cmake/sphinx.cmake)
florent's avatar
florent committed
16

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

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

21
22
SET(PKG_CONFIG_ADDITIONAL_VARIABLES plugindir ${PKG_CONFIG_ADDITIONAL_VARIABLES})

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

Guilhem Saurel's avatar
Guilhem Saurel committed
25
FINDPYTHON()
Guilhem Saurel's avatar
Guilhem Saurel committed
26
INCLUDE_DIRECTORIES(SYSTEM ${PYTHON_INCLUDE_DIRS})
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/${CUSTOM_HEADER_DIR})
Thomas Moulard's avatar
Thomas Moulard committed
41
ADD_SUBDIRECTORY(doc)
42
ADD_SUBDIRECTORY(unitTesting)