Skip to content
Snippets Groups Projects
CMakeLists.txt 2.03 KiB
Newer Older
Thomas Moulard's avatar
Thomas Moulard committed
# Copyright 2010, 2011, Florent Lamiraux, Thomas Moulard, JRL, CNRS/AIST
Thomas Moulard's avatar
Thomas Moulard committed
# 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.
Thomas Moulard's avatar
Thomas Moulard committed
# 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/>.

CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

INCLUDE(cmake/base.cmake)
Thomas Moulard's avatar
Thomas Moulard committed
INCLUDE(cmake/boost.cmake)
INCLUDE(cmake/eigen.cmake)
Thomas Moulard's avatar
Thomas Moulard committed
INCLUDE(cmake/pthread.cmake)
INCLUDE(cmake/cpack.cmake)
include(cmake/header.cmake)
include(cmake/python.cmake)
Thomas Moulard's avatar
Thomas Moulard committed
SET(PROJECT_NAME dynamic-graph-python)
SET(PROJECT_DESCRIPTION "Dynamic graph library Python bindings")
Guilhem Saurel's avatar
Guilhem Saurel committed
SET(PROJECT_URL "http://github.com/stack-of-tasks/dynamic-graph-python")
SET(DOXYGEN_USE_MATHJAX YES)

SET(CUSTOM_HEADER_DIR "dynamic-graph/python")
# Headers list.
SET(${PROJECT_NAME}_HEADERS
  include/dynamic-graph/python/interpreter.hh
  include/dynamic-graph/python/api.hh
SET(PKG_CONFIG_ADDITIONAL_VARIABLES plugindir ${PKG_CONFIG_ADDITIONAL_VARIABLES})

Thomas Moulard's avatar
Thomas Moulard committed
SETUP_PROJECT()
FINDPYTHON(2.7 EXACT REQUIRED)
Thomas Moulard's avatar
Thomas Moulard committed
# Trigger dependency to dynamic-graph.
ADD_REQUIRED_DEPENDENCY("dynamic-graph >= 3.0.0")
# Add dependency toward dynamic graph library in pkg-config file.
PKG_CONFIG_APPEND_LIBS("dynamic-graph-python")

# Search for Boost.
SET(BOOST_COMPONENTS python filesystem system thread program_options unit_test_framework)
SEARCH_FOR_BOOST()
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(include)
Thomas Moulard's avatar
Thomas Moulard committed
ADD_SUBDIRECTORY(doc)
ADD_SUBDIRECTORY(unitTesting)
Thomas Moulard's avatar
Thomas Moulard committed
SETUP_PROJECT_FINALIZE()