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

3
SET(PROJECT_ORG loco-3d)
4
SET(PROJECT_NAME curves)
5
SET(PROJECT_DESCRIPTION
6
7
  "template based classes for creating and manipulating spline and bezier curves. Comes with extra options specific to end-effector trajectories in robotics."
  )
Guilhem Saurel's avatar
Guilhem Saurel committed
8
9
10
11
12
13
SET(PROJECT_URL "http://gepgitlab.laas.fr/${PROJECT_NAMESPACE}/${PROJECT_NAME}")

INCLUDE(cmake/base.cmake)
INCLUDE(cmake/boost.cmake)
INCLUDE(cmake/test.cmake)
INCLUDE(cmake/python.cmake)
14

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

Guilhem Saurel's avatar
Guilhem Saurel committed
18
19
CMAKE_POLICY(SET CMP0048 OLD)
PROJECT(${PROJECT_NAME} CXX)
20

Guilhem Saurel's avatar
Guilhem Saurel committed
21
ADD_REQUIRED_DEPENDENCY(eigen3)
22
23
24
25
26
OPTION(CURVES_WITH_PINOCCHIO_SUPPORT "Build with pinocchio support" OFF)
IF(CURVES_WITH_PINOCCHIO_SUPPORT)
  ADD_REQUIRED_DEPENDENCY(pinocchio)
ENDIF(CURVES_WITH_PINOCCHIO_SUPPORT)

Guilhem Saurel's avatar
Guilhem Saurel committed
27

Guilhem Saurel's avatar
Guilhem Saurel committed
28
SET(BOOST_COMPONENTS unit_test_framework serialization)
Guilhem Saurel's avatar
Guilhem Saurel committed
29

Guilhem Saurel's avatar
Guilhem Saurel committed
30
OPTION (BUILD_PYTHON_INTERFACE "Build the python binding" ON)
31
IF(BUILD_PYTHON_INTERFACE)
Guilhem Saurel's avatar
Guilhem Saurel committed
32
33
34
35
  FINDPYTHON()
  INCLUDE_DIRECTORIES(SYSTEM ${PYTHON_INCLUDE_DIRS})

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

Guilhem Saurel's avatar
Guilhem Saurel committed
37
38
  ADD_REQUIRED_DEPENDENCY("eigenpy")
  SET(BOOST_COMPONENTS ${BOOST_COMPONENTS} python)
39
40
ENDIF(BUILD_PYTHON_INTERFACE)

41
42
43
#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
44
45
SEARCH_FOR_BOOST()
INCLUDE_DIRECTORIES(SYSTEM ${Boost_INCLUDE_DIRS})
46

47
48
49
50
IF(BUILD_PYTHON_INTERFACE)
  ADD_SUBDIRECTORY(python)
ENDIF(BUILD_PYTHON_INTERFACE)

51
ADD_SUBDIRECTORY(include/curves)
52
ADD_SUBDIRECTORY(tests)