2 Star 5 Fork 5

AlvinHuang/gps_serial

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
AlvinHuang 提交于 2019-11-13 17:23 . add gps_serial package
cmake_minimum_required(VERSION 2.8.3)
project(gps_serial)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake-modules)
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
sensor_msgs
message_generation
serial
)
set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
add_message_files(
FILES
targetGPS.msg
)
generate_messages(
DEPENDENCIES
std_msgs
)
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES gps_serial
# CATKIN_DEPENDS roscpp serial
# DEPENDS system_lib
CATKIN_DEPENDS message_runtime
)
include_directories(
include
${catkin_INCLUDE_DIRS}
)
add_executable(${PROJECT_NAME}_node
src/gps_serial_node.cpp
)
add_dependencies(${PROJECT_NAME}_node
gps_serial_generate_messages_cpp
)
target_link_libraries(${PROJECT_NAME}_node
${catkin_LIBRARIES}
)
install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
)
install(TARGETS ${PROJECT_NAME}_node
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(DIRECTORY launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/alvin_huang/gps_serial.git
[email protected]:alvin_huang/gps_serial.git
alvin_huang
gps_serial
gps_serial
master

搜索帮助