Files
PX4-Autopilot/platforms/ros2/CMakeLists.txt
T
Daniel Agar 9ee8fa21cd PX4 ROS2 msg conformity and explicit topics
- .msg files are PascalCase
 - topics are still either per msg or explicitly listed in TOPICS
 - compatible structs are still generated (eg struct msg_s), but ROS2 style px4::msg::Msg is also available
2022-03-07 10:36:27 -05:00

30 lines
931 B
CMake

#include_directories(${CMAKE_CURRENT_BINARY_DIR})
get_property(module_libraries GLOBAL PROPERTY PX4_MODULE_LIBRARIES)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/bin)
# add_executable(px4
# src/px4/common/main.cpp
# )
add_compile_options(-Wno-error)
include_directories(${PX4_BINARY_DIR})
# # mc_rate_control_ros2
# add_executable(mc_rate_control ${CMAKE_SOURCE_DIR}/src/modules/mc_rate_control_ros2/MulticopterRateControl.cpp)
# target_link_libraries(mc_rate_control px4_layer work_queue)
# ament_target_dependencies(mc_rate_control rclcpp std_msgs)
# rosidl_target_interfaces(mc_rate_control ${PROJECT_NAME} "rosidl_typesupport_cpp")
# add_dependencies(mc_rate_control generate_parameters)
# install(
# TARGETS
# mc_rate_control
# DESTINATION lib/${PROJECT_NAME}
# )