1111# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212# See the License for the specific language governing permissions and
1313# limitations under the License.
14- cmake_minimum_required (VERSION 3.8 )
14+ cmake_minimum_required (VERSION 3.22 )
1515project (camera_sync)
1616
1717if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
1818 add_compile_options (-Wall -Wextra -Wpedantic)
1919endif ()
2020
21- # find dependencies
2221find_package (ament_cmake REQUIRED)
2322find_package (rclcpp REQUIRED)
2423find_package (rclcpp_lifecycle REQUIRED)
@@ -30,7 +29,6 @@ find_package(message_filters REQUIRED)
3029find_package (image_transport REQUIRED)
3130find_package (deep_msgs REQUIRED)
3231
33- # Create include directory
3432include_directories (include )
3533
3634# Define lifecycle node support based on ROS distro
4139 add_definitions (-DUSE_LIFECYCLE_NODE=0)
4240endif ()
4341
44- # Add the multi-camera sync library for component
4542add_library (multi_camera_sync_component SHARED src/multi_camera_sync_node.cpp)
4643target_link_libraries (multi_camera_sync_component
4744 rclcpp::rclcpp
@@ -59,34 +56,25 @@ target_link_libraries(multi_camera_sync_component
5956rclcpp_components_register_nodes(multi_camera_sync_component "camera_sync::MultiCameraSyncNode" )
6057set (node_plugins "${node_plugins} camera_sync::MultiCameraSyncNode;$<TARGET_FILE:multi_camera_sync_component>\n " )
6158
62-
63-
64- # Install executables and libraries
6559install (TARGETS
6660 multi_camera_sync_component
6761 ARCHIVE DESTINATION lib
6862 LIBRARY DESTINATION lib
6963 RUNTIME DESTINATION bin
7064)
7165
72-
73-
74- # Install include directory
7566install (DIRECTORY include /
7667 DESTINATION include
7768)
7869
79- # Install launch files if any
8070install (DIRECTORY launch/
8171 DESTINATION share/${PROJECT_NAME} /launch
8272 FILES_MATCHING PATTERN "*.py" PATTERN "*.yaml" PATTERN "*.md"
8373)
8474
85- # Install config files
8675install (DIRECTORY config/
8776 DESTINATION share/${PROJECT_NAME} /config
8877 FILES_MATCHING PATTERN "*.yaml"
8978)
9079
91-
9280ament_package()
0 commit comments