CMakeLists.txt 1.02 KB
Newer Older
1 2
cmake_minimum_required(VERSION 2.6)
project(spline)
3
INCLUDE(cmake/base.cmake)
4
INCLUDE(cmake/test.cmake)
5
INCLUDE(cmake/python.cmake)
6
INCLUDE(cmake/hpp.cmake)
7

Guilhem Saurel's avatar
Guilhem Saurel committed
8
SET(PROJECT_NAME hpp-spline)
9
SET(PROJECT_DESCRIPTION
10 11
  "template based classes for creating and manipulating spline and bezier curves. Comes with extra options specific to end-effector trajectories in robotics."
  )
12

13 14 15
# Disable -Werror on Unix for now.
SET(CXX_DISABLE_WERROR True)
SET(CMAKE_VERBOSE_MAKEFILE True)
16 17 18 19

find_package(Eigen3 REQUIRED)
include_directories(${EIGEN3_INCLUDE_DIR})

20
SETUP_HPP_PROJECT()
21

Guilhem Saurel's avatar
Guilhem Saurel committed
22
OPTION (BUILD_PYTHON_INTERFACE "Build the python binding" ON)
23
IF(BUILD_PYTHON_INTERFACE)
24 25 26 27
  # search for python
  FINDPYTHON(2.7 REQUIRED)
  find_package( PythonLibs 2.7 REQUIRED )
  include_directories( ${PYTHON_INCLUDE_DIRS} )
28

29 30
  find_package( Boost COMPONENTS python REQUIRED )
  include_directories( ${Boost_INCLUDE_DIR} )
31

32
  add_subdirectory (python)
33 34
ENDIF(BUILD_PYTHON_INTERFACE)

35 36 37

ADD_SUBDIRECTORY(include/hpp/spline)
ADD_SUBDIRECTORY(tests)
38

39
SETUP_HPP_PROJECT_FINALIZE()