CMakeLists.txt 2.05 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
#
Thomas Moulard's avatar
Thomas Moulard committed
3
4
5
6
7
# This file is part of dynamic-graph-python.
# dynamic-graph-python is free software: you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public License
# as published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
florent's avatar
florent committed
8
#
Thomas Moulard's avatar
Thomas Moulard committed
9
10
11
12
13
14
# dynamic-graph-python is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Lesser Public License for more details.  You should have
# received a copy of the GNU Lesser General Public License along with
# dynamic-graph-python. If not, see <http://www.gnu.org/licenses/>.
florent's avatar
florent committed
15

Guilhem Saurel's avatar
Guilhem Saurel committed
16
17
18
19
20
21
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
22

23
INCLUDE(cmake/base.cmake)
Thomas Moulard's avatar
Thomas Moulard committed
24
INCLUDE(cmake/boost.cmake)
25
INCLUDE(cmake/eigen.cmake)
Thomas Moulard's avatar
Thomas Moulard committed
26
27
INCLUDE(cmake/pthread.cmake)
INCLUDE(cmake/cpack.cmake)
28
include(cmake/header.cmake)
Guilhem Saurel's avatar
Guilhem Saurel committed
29
include(cmake/python.cmake)
florent's avatar
florent committed
30
31


Guilhem Saurel's avatar
Guilhem Saurel committed
32
33
SET(DOXYGEN_USE_MATHJAX YES)

34
SET(CUSTOM_HEADER_DIR "dynamic-graph/python")
35
36
37
# Headers list.
SET(${PROJECT_NAME}_HEADERS
  include/dynamic-graph/python/interpreter.hh
38
  include/dynamic-graph/python/api.hh
39
40
  include/dynamic-graph/python/exception-python.hh

41
)
florent's avatar
florent committed
42

43
44
SET(PKG_CONFIG_ADDITIONAL_VARIABLES plugindir ${PKG_CONFIG_ADDITIONAL_VARIABLES})

Guilhem Saurel's avatar
Guilhem Saurel committed
45
PROJECT(${PROJECT_NAME} CXX)
florent's avatar
florent committed
46

47
FINDPYTHON(2.7 EXACT REQUIRED)
Guilhem Saurel's avatar
Guilhem Saurel committed
48

Thomas Moulard's avatar
Thomas Moulard committed
49
# Trigger dependency to dynamic-graph.
50
ADD_REQUIRED_DEPENDENCY("dynamic-graph >= 3.0.0")
florent's avatar
florent committed
51

52
53
54
# Add dependency toward dynamic graph library in pkg-config file.
PKG_CONFIG_APPEND_LIBS("dynamic-graph-python")

55
# Search for Boost.
56
SET(BOOST_COMPONENTS python filesystem system thread program_options unit_test_framework)
57
SEARCH_FOR_BOOST()
58
SEARCH_FOR_EIGEN()
59

florent's avatar
florent committed
60
ADD_SUBDIRECTORY(src)
61
ADD_SUBDIRECTORY(include)
Thomas Moulard's avatar
Thomas Moulard committed
62
ADD_SUBDIRECTORY(doc)
63
ADD_SUBDIRECTORY(unitTesting)