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

8
SET(PROJECT_ORG loco-3d)
9
SET(PROJECT_NAME curves)
10
SET(PROJECT_DESCRIPTION
11
12
  "template based classes for creating and manipulating spline and bezier curves. Comes with extra options specific to end-effector trajectories in robotics."
  )
13

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

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

21
SETUP_HPP_PROJECT()
22

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

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

33
  add_subdirectory (python)
34
35
ENDIF(BUILD_PYTHON_INTERFACE)

36

37
ADD_SUBDIRECTORY(include/curve)
38
ADD_SUBDIRECTORY(tests)
39

40
SETUP_HPP_PROJECT_FINALIZE()