CMakeLists.txt 1.26 KB
Newer Older
Guilhem Saurel's avatar
Guilhem Saurel committed
1 2
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

3
INCLUDE(cmake/base.cmake)
Guilhem Saurel's avatar
Guilhem Saurel committed
4
INCLUDE(cmake/boost.cmake)
5
INCLUDE(cmake/test.cmake)
6
INCLUDE(cmake/python.cmake)
7
INCLUDE(cmake/hpp.cmake)
8

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

15 16
# Disable -Werror on Unix for now.
SET(CXX_DISABLE_WERROR True)
17

18
SETUP_HPP_PROJECT()
19

Guilhem Saurel's avatar
Guilhem Saurel committed
20 21
ADD_REQUIRED_DEPENDENCY(eigen3)

Guilhem Saurel's avatar
Guilhem Saurel committed
22
SET(BOOST_COMPONENTS unit_test_framework serialization)
Guilhem Saurel's avatar
Guilhem Saurel committed
23

Guilhem Saurel's avatar
Guilhem Saurel committed
24
OPTION (BUILD_PYTHON_INTERFACE "Build the python binding" ON)
25
IF(BUILD_PYTHON_INTERFACE)
Guilhem Saurel's avatar
Guilhem Saurel committed
26 27 28 29
  FINDPYTHON()
  INCLUDE_DIRECTORIES(SYSTEM ${PYTHON_INCLUDE_DIRS})

  STRING(REGEX REPLACE "-" "_" PY_NAME ${PROJECT_NAME})
30

Guilhem Saurel's avatar
Guilhem Saurel committed
31 32
  ADD_REQUIRED_DEPENDENCY("eigenpy")
  SET(BOOST_COMPONENTS ${BOOST_COMPONENTS} python)
33 34
ENDIF(BUILD_PYTHON_INTERFACE)

35 36 37
#find_package(Boost 1.58 REQUIRED unit_test_framework system serialization)
#SET(BOOST_COMPONENTS unit_test_framework serialization)

Guilhem Saurel's avatar
Guilhem Saurel committed
38 39
SEARCH_FOR_BOOST()
INCLUDE_DIRECTORIES(SYSTEM ${Boost_INCLUDE_DIRS})
40

41 42 43 44
IF(BUILD_PYTHON_INTERFACE)
  ADD_SUBDIRECTORY(python)
ENDIF(BUILD_PYTHON_INTERFACE)

45
ADD_SUBDIRECTORY(include/curves)
46
ADD_SUBDIRECTORY(tests)
47

48
SETUP_HPP_PROJECT_FINALIZE()