initial version
This commit is contained in:
27
CMakeLists.txt
Normal file
27
CMakeLists.txt
Normal file
@@ -0,0 +1,27 @@
|
||||
cmake_minimum_required(VERSION 3.8)
|
||||
project(video_to_rosbag)
|
||||
|
||||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
add_compile_options(-Wall -Wextra -Wpedantic)
|
||||
endif()
|
||||
|
||||
find_package(ament_cmake REQUIRED)
|
||||
find_package(rclcpp REQUIRED)
|
||||
find_package(sensor_msgs REQUIRED)
|
||||
find_package(rosbag2_cpp REQUIRED)
|
||||
find_package(OpenCV REQUIRED COMPONENTS core imgcodecs videoio)
|
||||
|
||||
add_executable(video_to_rosbag src/video_to_rosbag.cc)
|
||||
target_include_directories(video_to_rosbag PRIVATE ${OpenCV_INCLUDE_DIRS})
|
||||
target_link_libraries(video_to_rosbag ${OpenCV_LIBS})
|
||||
|
||||
ament_target_dependencies(video_to_rosbag
|
||||
rclcpp
|
||||
sensor_msgs
|
||||
rosbag2_cpp
|
||||
)
|
||||
|
||||
install(TARGETS video_to_rosbag
|
||||
DESTINATION lib/${PROJECT_NAME})
|
||||
|
||||
ament_package()
|
||||
Reference in New Issue
Block a user