1 Star 0 Fork 0

yan1219/teb

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1012 Bytes
一键复制 编辑 原始数据 按行查看 历史
yan1219 提交于 2022-09-26 16:45 . .
cmake_minimum_required(VERSION 3.18)
project(g2o_demo)
set(CMAKE_CXX_STANDARD 14)
#编译优化
set(CMAKE_C_FLAGS_Release "${CMAKE_C_FLAGS_Release} -O3")
include_directories(${PROJECT_SOURCE_DIR}/include)
include_directories(${PROJECT_SOURCE_DIR}/third_party/include)
include_directories(${PROJECT_SOURCE_DIR}/third_party/include/suitesparse)
find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
include_directories(${Python3_INCLUDE_DIRS})
add_library(optimal_planner
src/optimal_planner.cpp
src/timed_elastic_band.cpp
src/obstacles.cpp
)
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/third_party/lib/g2o)
target_link_libraries(optimal_planner PRIVATE
g2o_csparse_extension g2o_core
g2o_stuff g2o_types_slam2d g2o_types_slam3d g2o_solver_cholmod
g2o_solver_pcg g2o_solver_csparse g2o_incremental cxsparse)
add_executable(g2o_demo main.cpp )
target_link_libraries(g2o_demo
Python3::Python
optimal_planner)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/xiangwei_yan/teb.git
git@gitee.com:xiangwei_yan/teb.git
xiangwei_yan
teb
teb
master

搜索帮助