CMakeLists.txt 1.09 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

Guilhem Saurel's avatar
Guilhem Saurel committed
7 8
SET(PROJECT_ORG humanoid-path-planner)
SET(PROJECT_NAME hpp-spline)
9 10 11
SET(PROJECT_DESCRIPTION
	 "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
12
SET(PROJECT_URL "https://github.com/${PROJECT_ORG}/${PROJECT_NAME}")
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 22
SETUP_PROJECT()

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

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

	add_subdirectory (python)

ENDIF(BUILD_PYTHON_INTERFACE)

37 38 39

ADD_SUBDIRECTORY(include/hpp/spline)
ADD_SUBDIRECTORY(tests)
40 41

SETUP_PROJECT_FINALIZE()