CMakeLists.txt 1.24 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})

23
CMAKE_POLICY(SET CMP0048 OLD)
Guilhem Saurel's avatar
Guilhem Saurel committed
24
PROJECT(${PROJECT_NAME} CXX)
florent's avatar
florent committed
25

Guilhem Saurel's avatar
Guilhem Saurel committed
26
FINDPYTHON()
Guilhem Saurel's avatar
Guilhem Saurel committed
27
INCLUDE_DIRECTORIES(SYSTEM ${PYTHON_INCLUDE_DIRS})
Guilhem Saurel's avatar
Guilhem Saurel committed
28

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

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

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

florent's avatar
florent committed
40
ADD_SUBDIRECTORY(src)
41
ADD_SUBDIRECTORY(include/${CUSTOM_HEADER_DIR})
Thomas Moulard's avatar
Thomas Moulard committed
42
ADD_SUBDIRECTORY(doc)
43
ADD_SUBDIRECTORY(unitTesting)