forked from osrf/ros2_raw_dds_example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
41 lines (35 loc) · 884 Bytes
/
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
cmake_minimum_required(VERSION 3.5)
project(ros2_raw_dds_example)
find_package(CycloneDDS REQUIRED)
find_package(fastcdr REQUIRED)
find_package(fastrtps REQUIRED)
add_executable(ros2_fastdds_recv
src/fastdds/ros2_fastdds_recv.cpp
src/fastdds/UUID.cxx
src/fastdds/UUIDPubSubTypes.cxx
src/fastdds/UUIDSubscriber.cxx
)
target_link_libraries(ros2_fastdds_recv
fastrtps
)
add_executable(ros2_fastdds_send
src/fastdds/ros2_fastdds_send.cpp
src/fastdds/UUID.cxx
src/fastdds/UUIDPubSubTypes.cxx
src/fastdds/UUIDPublisher.cxx
)
target_link_libraries(ros2_fastdds_send
fastrtps
)
add_executable(ros2_cyclonedds_send
src/cyclonedds/ros2_cyclonedds_send.cpp
)
target_link_libraries(ros2_cyclonedds_send
CycloneDDS::ddsc
)
add_executable(ros2_cyclonedds_recv
src/cyclonedds/ros2_cyclonedds_recv.cpp
)
target_link_libraries(ros2_cyclonedds_recv
CycloneDDS::ddsc
)