2 Star 13 Fork 10

Linfu Wei/simple-lio

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1.26 KB
一键复制 编辑 原始数据 按行查看 历史
Linfu Wei 提交于 2023-04-21 11:30 . 使用yaml-cpp进行参数配置
cmake_minimum_required(VERSION 3.0.2)
project(simple_lio)
set(CMAKE_BUILD_TYPE "Release")
set( CMAKE_CXX_FLAGS "-std=c++17 -O3" )
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fexceptions")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -fexceptions -Wno-unused-local-typedefs")
find_package(catkin REQUIRED COMPONENTS
geometry_msgs
nav_msgs
roscpp
rospy
sensor_msgs
std_msgs
tf
livox_ros_driver
)
find_package(PCL REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(Ceres REQUIRED)
find_package(yaml-cpp REQUIRED)
add_subdirectory(3rd_party/spdlog)
include_directories(
include
${catkin_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
${CERES_INCLUDE_DIRS}
# spdlog
${PROJECT_SOURCE_DIR}/third_party/spdlog/include
)
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES simple_lio
# CATKIN_DEPENDS geometry_msgs nav_msgs roscpp rospy sensor_msgs std_msgs tf
# DEPENDS system_lib
)
add_executable(custom_msg_to_sensor_msg src/custom_msg_to_sensor_msg.cpp)
target_link_libraries(custom_msg_to_sensor_msg
${catkin_LIBRARIES}
${PCL_LIBRARIES}
${YAML_CPP_LIBRARIES}
)
add_executable(imu_process src/imu_process.cpp include/ikd-Tree/ikd_Tree.cpp)
target_link_libraries(imu_process
${catkin_LIBRARIES}
${PCL_LIBRARIES}
spdlog::spdlog
${YAML_CPP_LIBRARIES}
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ghowoght/simple_lio.git
git@gitee.com:ghowoght/simple_lio.git
ghowoght
simple_lio
simple-lio
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385