Commit 1da293aa authored by Arnaud Billon's avatar Arnaud Billon
Browse files

[refactor] Sanitize Checks LidarSlam

parent 14c29551
......@@ -268,7 +268,19 @@ endif(ENABLE_all)
# Features Options
option(LIDARVIEW_BUILD_SLAM "Build Lidar SLAM (requires PCL, Ceres, nanoflann; optional g2o)" OFF)
if(LIDARVIEW_BUILD_SLAM)
if(NOT ENABLE_ceres)
message(FATAL_ERROR "SLAM requires Ceres")
endif()
if(NOT ENABLE_pcl)
message(FATAL_ERROR "SLAM requires PCL")
endif()
if(NOT ENABLE_nanoflann)
message(FATAL_ERROR "SLAM requires nanoflann")
endif()
endif()
# Common-SuperBuild
add_subdirectory(common-superbuild)
# Check if some Boost environment variables could hide local Boost install
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment