Commit ed523265 authored by Pierre Guilbert's avatar Pierre Guilbert
Browse files

Superbuild and code refactoring to set the SLAM optional

parent f2534cf2
......@@ -122,27 +122,17 @@ set (CM_PROJECTS_ALL)
# Include all optional projects. These are the ones user can pick and choose.
# Some of these allow using system libraries too.
#Plug-in PCL
#if (WIN32) # Only available for windows for now
# PCL
include(pcl)
#endif()
# If pcl has been enabled, include flann, zlib, png and qhull
if (pcl_ENABLED)
message("PCL enabled, you will have to enable flann, zlib, png and qhull")
message("Notice that pcl can only be build in Release mode")
include(flann)
include(zlib)
include(png)
include(qhull)
endif()
include(flann)
include(zlib)
include(png)
include(qhull)
# If ceres has been enabled, include glog
# Ceres
include(ceres)
if (ceres_ENABLED)
message("CERES enabled, you will have to enable glog and eigen")
include(glog)
endif()
include(glog)
#Veloview
include(qt)
......@@ -160,13 +150,3 @@ process_dependencies()
if (veloview_ENABLED)
include(veloview.bundle OPTIONAL)
endif()
# force boost.mpi to be build and install (needed by pcl)
if (UNIX AND pcl_ENABLED AND boost_ENABLED)
add_custom_command(
TARGET boost
POST_BUILD
COMMAND ${CMAKE_SOURCE_DIR}/Projects/unix/boostMPI.sh
)
endif()
......@@ -4,6 +4,9 @@ add_external_project(ceres
CMAKE_ARGS
-DCMAKE_CXX_STANDARD=11
-DCMAKE_CXX_STANDARD_REQUIRED=true
-DEIGEN_INCLUDE_DIR=<INSTALL_DIR>/include/eigen3
-DEIGEN_INCLUDE_DIR_HINTS=<INSTALL_DIR>/include/eigen3
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>/ceres
)
\ No newline at end of file
-DBUILD_TESTING=false
-DBUILD_EXAMPLES=false
-DGFLAGS=false
)
add_external_project(glog
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>/glog
)
\ No newline at end of file
-DBUILD_TESTING=false
-DWITH_GFLAGS=false
)
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