-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
23 lines (17 loc) · 1.03 KB
/
CMakeLists.txt
File metadata and controls
23 lines (17 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
cmake_minimum_required(VERSION 2.8.3)
project(modelica_bridge_examples)
add_compile_options(-std=c++11)
set(CATKIN_DEPS joy roscpp std_msgs modelica_bridge)
find_package(catkin REQUIRED COMPONENTS message_generation ${CATKIN_DEPS})
include_directories(${catkin_INCLUDE_DIRS})
catkin_package(CATKIN_DEPENDS message_runtime ${CATKIN_DEPS})
add_executable(two_springs_modbridgex_controller src/two_springs_example/controller.cpp)
target_link_libraries(two_springs_modbridgex_controller ${catkin_LIBRARIES})
add_dependencies(two_springs_modbridgex_controller ${catkin_EXPORTED_TARGETS})
add_executable(two_springs_modbridgex_teleop src/two_springs_example/teleop.cpp)
target_link_libraries(two_springs_modbridgex_teleop ${catkin_LIBRARIES})
add_dependencies(two_springs_modbridgex_teleop ${catkin_EXPORTED_TARGETS})
install(TARGETS two_springs_modbridgex_controller two_springs_modbridgex_teleop
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch)