CMakeLists.txt 1.12 KB
Newer Older
1
2
cmake_minimum_required(VERSION 2.6)
project(spline)
3
4
INCLUDE(cmake/base.cmake)
INCLUDE(cmake/python.cmake)
5

6
7
8
9
10
SET(PROJECT_NAME spline)
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."
 )
SET(PROJECT_URL "")
11
12
13

set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/build/")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin/")
14
15
16
17
set(LIBRARY_OUTPUT_PATH "${PROJECT_SOURCE_DIR}/lib/")
# Disable -Werror on Unix for now.
SET(CXX_DISABLE_WERROR True)
SET(CMAKE_VERBOSE_MAKEFILE True)
18
19
20
21

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

22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
SETUP_PROJECT()

OPTION (BUILD_PYTHON_INTERFACE "Build the python binding" ON)
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)

38
39
add_subdirectory (src/tests/spline_test)

40
41

SETUP_PROJECT_FINALIZE()