-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
57 lines (47 loc) · 1.44 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
cmake_minimum_required(VERSION 3.8)
set(PROJECT_NAME force_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/ForceControlCollection)
set(PROJECT_DESCRIPTION "")
set(CMAKE_CXX_STANDARD 17)
set(PROJECT_USE_CMAKE_EXPORT TRUE)
set(CXX_DISABLE_WERROR ON)
option(INSTALL_DOCUMENTATION "Generate and install the documentation" OFF)
include(cmake/base.cmake)
project(force_control_collection LANGUAGES CXX)
# mc_rtc
add_project_dependency(mc_rtc REQUIRED)
if(DEFINED CATKIN_DEVEL_PREFIX)
set(DOXYGEN_HTML_OUTPUT html)
find_package(catkin REQUIRED COMPONENTS
roscpp
qp_solver_collection
)
# Eigen
find_package(Eigen3 REQUIRED)
include_directories(${EIGEN3_INCLUDE_DIR})
catkin_package(
CATKIN_DEPENDS
roscpp
qp_solver_collection
DEPENDS EIGEN3
INCLUDE_DIRS include
LIBRARIES ForceColl
)
include_directories(include ${catkin_INCLUDE_DIRS})
link_directories(${catkin_LIBRARY_DIRS})
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)
endif()
add_subdirectory(src)
if(BUILD_TESTING OR CATKIN_ENABLE_TESTING)
add_subdirectory(tests)
endif()
if(INSTALL_DOCUMENTATION)
add_subdirectory(doc)
endif()