CMakeLists.txt 1.06 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
22
23
ADD_REQUIRED_DEPENDENCY(eigen3)

SET(BOOST_COMPONENTS unit_test_framework)

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

Guilhem Saurel's avatar
Guilhem Saurel committed
34
  ADD_SUBDIRECTORY(python)
35
36
ENDIF(BUILD_PYTHON_INTERFACE)

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

40
ADD_SUBDIRECTORY(include/curves)
41
ADD_SUBDIRECTORY(tests)
42

43
SETUP_HPP_PROJECT_FINALIZE()