ros2.MsgGen.CMakeLists.ftl 829 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# generated by ros2.MsgGen.CMakeLists.ftl
cmake_minimum_required(VERSION 3.5)
project(struct_msgs)
find_package(ament_cmake REQUIRED)
find_package(rosidl_default_generators REQUIRED)

# declare the message files to generate code for

<#list viewModel.getFileNamesWithPath() as fileWithPath>
LIST(APPEND msg_files "${fileWithPath}")
</#list>

<#noparse>
rosidl_generate_interfaces(${PROJECT_NAME} ${msg_files})
ament_export_dependencies(rosidl_default_runtime)
ament_package()

set(struct_msgs_LIBRARIES struct_msgs__rosidl_typesupport_cpp struct_msgs__rosidl_typesupport_fastrtps_cpp struct_msgs__rosidl_typesupport_introspection_cpp PARENT_SCOPE)
export(TARGETS struct_msgs__rosidl_typesupport_cpp struct_msgs__rosidl_typesupport_fastrtps_cpp struct_msgs__rosidl_typesupport_introspection_cpp FILE struct_msgs.cmake)
</#noparse>