-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
51 lines (41 loc) · 1.5 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
cmake_minimum_required(VERSION 2.8.3)
project(wb_state_publisher)
find_package(catkin REQUIRED
dwl
dwl_msgs
roscpp
hardware_interface
controller_interface
control_toolbox
realtime_tools
pluginlib
urdf
dynamic_reconfigure
tf)
catkin_package(
INCLUDE_DIRS include
LIBRARIES ${PROJECT_NAME}
CATKIN_DEPENDS roscpp hardware_interface controller_interface pluginlib urdf tf
dynamic_reconfigure dwl)
# Setting flags for optimization
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_BUIL_RELEASE Release)
include_directories(include)
include_directories(${catkin_INCLUDE_DIRS})
include_directories(${dwl_INCLUDE_DIRS})
## Declare a cpp library
add_library(${PROJECT_NAME} src/WholeBodyStatePublisherController.cpp)
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES}
${dwl_LIBRARIES})
add_dependencies(${PROJECT_NAME} ${dwl_msgs_EXPORTED_TARGETS})
install(DIRECTORY ${CMAKE_SOURCE_DIR}/config/
DESTINATION DESTINATION share/${PROJECT_NAME}/config
FILES_MATCHING PATTERN "*.yaml*")
install(DIRECTORY ${CMAKE_SOURCE_DIR}/launch/
DESTINATION DESTINATION share/${PROJECT_NAME}/launch
FILES_MATCHING PATTERN "*.*")
install(FILES ${CMAKE_SOURCE_DIR}/wb_state_publisher.xml DESTINATION share/${PROJECT_NAME})
install(DIRECTORY ${CMAKE_SOURCE_DIR}/include/
DESTINATION DESTINATION include
FILES_MATCHING PATTERN "*.h*")
install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION lib)