CMakeLists.txt 1.76 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
16
17

CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

18
INCLUDE(cmake/base.cmake)
Thomas Moulard's avatar
Thomas Moulard committed
19
20
21
INCLUDE(cmake/boost.cmake)
INCLUDE(cmake/pthread.cmake)
INCLUDE(cmake/cpack.cmake)
22
include(cmake/header.cmake)
florent's avatar
florent committed
23

Thomas Moulard's avatar
Thomas Moulard committed
24
25
26
SET(PROJECT_NAME dynamic-graph-python)
SET(PROJECT_DESCRIPTION "Dynamic graph library Python bindings")
SET(PROJECT_URL "http://github.com/jrl-umi3218/dynamic-graph-python")
florent's avatar
florent committed
27

28
SET(CUSTOM_HEADER_DIR "dynamic-graph/python")
29
30
31
# Headers list.
SET(${PROJECT_NAME}_HEADERS
  include/dynamic-graph/python/interpreter.hh
32
  include/dynamic-graph/python/api.hh
33
34
  include/dynamic-graph/python/exception-python.hh

35
)
florent's avatar
florent committed
36

Thomas Moulard's avatar
Thomas Moulard committed
37
38
# Defines paths.
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
florent's avatar
florent committed
39

Thomas Moulard's avatar
Thomas Moulard committed
40
SETUP_PROJECT()
florent's avatar
florent committed
41

Thomas Moulard's avatar
Thomas Moulard committed
42
43
# Trigger dependency to dynamic-graph.
ADD_REQUIRED_DEPENDENCY("dynamic-graph >= 1.0")
florent's avatar
florent committed
44

45
46
47
# Add dependency toward dynamic graph library in pkg-config file.
PKG_CONFIG_APPEND_LIBS("dynamic-graph-python")

48
49
50
# Search for Boost.
SEARCH_FOR_BOOST()

florent's avatar
florent committed
51
ADD_SUBDIRECTORY(src)
52
ADD_SUBDIRECTORY(include)
Thomas Moulard's avatar
Thomas Moulard committed
53
ADD_SUBDIRECTORY(doc)
54

Thomas Moulard's avatar
Thomas Moulard committed
55
SETUP_PROJECT_FINALIZE()
56