-
Notifications
You must be signed in to change notification settings - Fork 16
/
CMakeLists.txt
58 lines (49 loc) · 1.49 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
49
50
51
52
53
54
55
56
57
58
cmake_minimum_required(VERSION 3.8)
set(PROJECT_NAME centroidal_control_collection)
set(PROJECT_GENERATED_HEADERS_SKIP_DEPRECATED ON)
set(PROJECT_GENERATED_HEADERS_SKIP_CONFIG ON)
set(PROJECT_GENERATED_HEADERS_SKIP_WARNING ON)
set(PROJECT_URL https://github.com/isri-aist/CentroidalControlCollection)
set(PROJECT_DESCRIPTION "")
set(CMAKE_CXX_STANDARD 17)
set(PROJECT_USE_CMAKE_EXPORT TRUE)
set(CXX_DISABLE_WERROR ON)
set(CMAKE_COLOR_DIAGNOSTICS ON)
option(INSTALL_DOCUMENTATION "Generate and install the documentation" OFF)
include(cmake/base.cmake)
project(centroidal_control_collection LANGUAGES CXX)
if(DEFINED CATKIN_DEVEL_PREFIX)
set(DOXYGEN_HTML_OUTPUT html)
# mc_rtc
add_project_dependency(mc_rtc REQUIRED)
find_package(catkin REQUIRED COMPONENTS
roscpp
qp_solver_collection
force_control_collection
nmpc_ddp
)
catkin_package(
CATKIN_DEPENDS
roscpp
qp_solver_collection
force_control_collection
nmpc_ddp
DEPENDS EIGEN3
INCLUDE_DIRS include
LIBRARIES CCC
)
else()
set(DOXYGEN_HTML_OUTPUT doxygen-html)
set(CATKIN_ENABLE_TESTING OFF)
option(BUILD_SHARED_LIBS "Build libraries as shared as opposed to static" ON)
add_project_dependency(qp_solver_collection REQUIRED)
add_project_dependency(force_control_collection REQUIRED)
add_project_dependency(nmpc_ddp REQUIRED)
endif()
add_subdirectory(src)
if(BUILD_TESTING OR CATKIN_ENABLE_TESTING)
add_subdirectory(tests)
endif()
if(INSTALL_DOCUMENTATION)
add_subdirectory(doc)
endif()