CMakeLists.txt 1.35 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 14 15 16 17 18
# Make sure that every header is generated in dynamic-graph
SET(CUSTOM_HEADER_DIR "dynamic-graph/python")

# Do not fail on warning
SET(CXX_DISABLE_WERROR TRUE)

19
INCLUDE(cmake/base.cmake)
Thomas Moulard's avatar
Thomas Moulard committed
20
INCLUDE(cmake/boost.cmake)
21
INCLUDE(cmake/eigen.cmake)
22 23
INCLUDE(cmake/python.cmake)
INCLUDE(cmake/test.cmake)
Guilhem Saurel's avatar
Guilhem Saurel committed
24
INCLUDE(cmake/sphinx.cmake)
florent's avatar
florent committed
25

Guilhem Saurel's avatar
Guilhem Saurel committed
26 27
SET(DOXYGEN_USE_MATHJAX YES)

28
SET(CUSTOM_HEADER_DIR "dynamic-graph/python")
florent's avatar
florent committed
29

30 31
SET(PKG_CONFIG_ADDITIONAL_VARIABLES plugindir ${PKG_CONFIG_ADDITIONAL_VARIABLES})

32
CMAKE_POLICY(SET CMP0048 OLD)
Guilhem Saurel's avatar
Guilhem Saurel committed
33
PROJECT(${PROJECT_NAME} CXX)
florent's avatar
florent committed
34

Guilhem Saurel's avatar
Guilhem Saurel committed
35
FINDPYTHON()
Guilhem Saurel's avatar
Guilhem Saurel committed
36
INCLUDE_DIRECTORIES(SYSTEM ${PYTHON_INCLUDE_DIRS})
Guilhem Saurel's avatar
Guilhem Saurel committed
37

38 39
ADD_REQUIRED_DEPENDENCY(eigen3)
ADD_PROJECT_DEPENDENCY(dynamic-graph 3.0.0 REQUIRED)
florent's avatar
florent committed
40

41 42
PKG_CONFIG_APPEND_LIBS("dynamic-graph-python")

43
SET(BOOST_COMPONENTS filesystem system thread program_options unit_test_framework python)
44 45
SEARCH_FOR_BOOST()

florent's avatar
florent committed
46
ADD_SUBDIRECTORY(src)
47
ADD_SUBDIRECTORY(include/${CUSTOM_HEADER_DIR})
Thomas Moulard's avatar
Thomas Moulard committed
48
ADD_SUBDIRECTORY(doc)
49
ADD_SUBDIRECTORY(unitTesting)