-
Notifications
You must be signed in to change notification settings - Fork 7
/
CMakeLists.txt
48 lines (38 loc) · 1.36 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Requires at least CMake 2.8 to configure the package.
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
SET(CXX_DISABLE_WERROR TRUE)
INCLUDE(cmake/base.cmake)
INCLUDE(cmake/boost.cmake)
INCLUDE(cmake/qhull.cmake)
SET(PROJECT_NAME roboptim-capsule)
SET(PROJECT_DESCRIPTION
"An automated optimal capsule generator over polyhedrons.")
SET(PROJECT_URL "https://github.com/roboptim/roboptim-capsule")
# Use MathJax for Doxygen formulae
SET(DOXYGEN_USE_MATHJAX "YES")
# Where to compile shared objects
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
SET(${PROJECT_NAME}_HEADERS
include/roboptim/capsule/distance-capsule-point.hh
include/roboptim/capsule/fwd.hh
include/roboptim/capsule/fitter.hh
include/roboptim/capsule/qhull.hh
include/roboptim/capsule/types.hh
include/roboptim/capsule/util.hh
include/roboptim/capsule/volume.hh
)
SETUP_PROJECT()
# Declare dependencies
SET(BOOST_COMPONENTS
date_time filesystem system thread program_options unit_test_framework)
SEARCH_FOR_BOOST()
SEARCH_FOR_QHULL()
ADD_REQUIRED_DEPENDENCY("eigen3 >= 3.2.0")
ADD_REQUIRED_DEPENDENCY("roboptim-core >= 3.2")
ADD_REQUIRED_DEPENDENCY("roboptim-core-plugin-ipopt >= 3.2")
# Add main library to pkg-config file.
PKG_CONFIG_APPEND_LIBS(${PROJECT_NAME})
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(tests)
SETUP_PROJECT_FINALIZE()