加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1.74 KB
一键复制 编辑 原始数据 按行查看 历史
出生八斤半 提交于 2024-05-03 21:37 . update
cmake_minimum_required(VERSION 2.8.3)
project(offboard)
add_definitions(-std=c++14 -g -O3 -ftree-vectorize -march=native)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
roslib
std_msgs
sensor_msgs
geometry_msgs
mavros_msgs
nav_msgs
message_generation
)
find_package(Eigen3 REQUIRED)
add_message_files(
FILES
ControlCommand.msg
DebugPID.msg
)
generate_messages(
DEPENDENCIES
std_msgs
geometry_msgs
)
catkin_package(
CATKIN_DEPENDS roscpp std_msgs message_runtime
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIRS}
)
add_executable(controller_node src/controller_node.cpp)
target_link_libraries(controller_node ${catkin_LIBRARIES})
add_dependencies(controller_node
${${PROJECT_NAME}_EXPORTED_TARGETS}
${catkin_EXPORTED_TARGETS})
add_executable(reveiveRC src/reveiveRC.cpp)
target_link_libraries(reveiveRC ${catkin_LIBRARIES})
# DEMO
add_executable(posctl_hover src/posctl_hover.cpp)
target_link_libraries(posctl_hover ${catkin_LIBRARIES})
add_executable(posctl_circle src/posctl_circle.cpp)
target_link_libraries(posctl_circle ${catkin_LIBRARIES})
add_executable(attctl_circle src/attctl_circle.cpp)
target_link_libraries(attctl_circle ${catkin_LIBRARIES})
add_dependencies(attctl_circle
${${PROJECT_NAME}_EXPORTED_TARGETS}
${catkin_EXPORTED_TARGETS})
add_executable(attctl_traj src/attctl_traj.cpp)
target_link_libraries(attctl_traj ${catkin_LIBRARIES} )
add_dependencies(attctl_traj
${${PROJECT_NAME}_EXPORTED_TARGETS}
${catkin_EXPORTED_TARGETS})
add_executable(traj src/traj.cpp)
target_link_libraries(traj ${catkin_LIBRARIES} )
add_dependencies(traj
${${PROJECT_NAME}_EXPORTED_TARGETS}
${catkin_EXPORTED_TARGETS})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化