加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
cmake_minimum_required(VERSION 3.0.2)
project(simple_lio)
set(CMAKE_BUILD_TYPE "Release")
set( CMAKE_CXX_FLAGS "-std=c++14 -O3" )
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fexceptions")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -fexceptions -Wno-unused-local-typedefs")
find_package(OpenMP QUIET)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
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)
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES simple_loam
# CATKIN_DEPENDS geometry_msgs nav_msgs roscpp rospy sensor_msgs std_msgs tf
# DEPENDS system_lib
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
${CERES_INCLUDE_DIRS}
)
add_subdirectory(3rd_party/spdlog)
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
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化