CMakeLists.txt 1.3 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
11
12
# Export CMake Target
SET(PROJECT_USE_CMAKE_EXPORT TRUE)

13
INCLUDE(cmake/base.cmake)
Thomas Moulard's avatar
Thomas Moulard committed
14
INCLUDE(cmake/boost.cmake)
15
INCLUDE(cmake/eigen.cmake)
16
17
INCLUDE(cmake/python.cmake)
INCLUDE(cmake/test.cmake)
Guilhem Saurel's avatar
Guilhem Saurel committed
18
INCLUDE(cmake/sphinx.cmake)
florent's avatar
florent committed
19

Guilhem Saurel's avatar
Guilhem Saurel committed
20
21
SET(DOXYGEN_USE_MATHJAX YES)

22
SET(CUSTOM_HEADER_DIR "dynamic-graph/python")
florent's avatar
florent committed
23

24
25
SET(PKG_CONFIG_ADDITIONAL_VARIABLES plugindir ${PKG_CONFIG_ADDITIONAL_VARIABLES})

26
CMAKE_POLICY(SET CMP0048 OLD)
Guilhem Saurel's avatar
Guilhem Saurel committed
27
PROJECT(${PROJECT_NAME} CXX)
florent's avatar
florent committed
28

Guilhem Saurel's avatar
Guilhem Saurel committed
29
FINDPYTHON()
Guilhem Saurel's avatar
Guilhem Saurel committed
30
INCLUDE_DIRECTORIES(SYSTEM ${PYTHON_INCLUDE_DIRS})
Guilhem Saurel's avatar
Guilhem Saurel committed
31

Thomas Moulard's avatar
Thomas Moulard committed
32
# Trigger dependency to dynamic-graph.
33
ADD_REQUIRED_DEPENDENCY("dynamic-graph >= 3.0.0")
florent's avatar
florent committed
34

35
36
37
# Add dependency toward dynamic graph library in pkg-config file.
PKG_CONFIG_APPEND_LIBS("dynamic-graph-python")

38
# Search for Boost.
39
SET(BOOST_COMPONENTS filesystem system thread program_options unit_test_framework)
40
SEARCH_FOR_BOOST()
41
SEARCH_FOR_EIGEN()
42

florent's avatar
florent committed
43
ADD_SUBDIRECTORY(src)
44
ADD_SUBDIRECTORY(include/${CUSTOM_HEADER_DIR})
Thomas Moulard's avatar
Thomas Moulard committed
45
ADD_SUBDIRECTORY(doc)
46
ADD_SUBDIRECTORY(unitTesting)