cmake_minimum_required(VERSION 3.10)
project(omplLearn)
find_package(ompl REQUIRED)
set(SRC main.cpp)
add_executable(${PROJECT_NAME} ${SRC})
if(${OMPL_FOUND})
target_include_directories(${PROJECT_NAME} PRIVATE ${OMPL_INCLUDE_DIRS})
message("ompl include directory:${OMPL_INCLUDE_DIRS}")
target_link_libraries(${PROJECT_NAME} PRIVATE ${OMPL_LIBRARIES})
message("the ompl version is : ${OMPL_VERSION}")
else(${OMPL_FOUND})
message(FATAL_ERROR,"OMP LIBRERY NOT FOUND")
endif(${OMPL_FOUND})
使用cmake构建ompl程序
于 2023-08-21 10:37:05 首次发布