Commit 2d26b94c authored by Arnaud Billon's avatar Arnaud Billon
Browse files

[refactor] Boost/Eigen/PCL/yaml supply their own flags

parent 238b24ec
superbuild_add_project(ceres
DEPENDS eigen glog
CMAKE_ARGS
-DCMAKE_CXX_STANDARD=11
-DCMAKE_CXX_STANDARD_REQUIRED=ON
......@@ -9,5 +9,4 @@ superbuild_add_project(ceres
-DBUILD_TESTING=OFF
-DBUILD_EXAMPLES=OFF
-DGFLAGS=OFF
-DEIGEN_INCLUDE_DIR_HINTS=<INSTALL_DIR>/include/eigen3
)
)
......@@ -6,4 +6,9 @@ superbuild_add_project(eigen
CMAKE_ARGS
-DEIGEN_BUILD_PKGCONFIG=OFF
-DBUILD_TESTING=OFF
)
)
superbuild_add_extra_cmake_args(
-DEIGEN_INCLUDE_DIR:PATH=<INSTALL_DIR>/include/eigen3
-DEIGEN3_DIR:PATH=<INSTALL_DIR>/share/eigen3/cmake
)
......@@ -4,8 +4,7 @@ superbuild_add_project(g2o
CMAKE_ARGS
-DG2O_BUILD_EXAMPLES=OFF
-DG2O_BUILD_APPS=OFF
-DEIGEN3_DIR=<INSTALL_DIR>/share/eigen3/cmake
-Dg2o_RUNTIME_OUTPUT_DIRECTORY=bin
-Dg2o_LIBRARY_OUTPUT_DIRECTORY=lib
-DCMAKE_INSTALL_RPATH=<INSTALL_DIR>/lib
)
)
......@@ -14,8 +14,6 @@ superbuild_add_project(liblas
-DWITH_LASZIP:BOOL=OFF
-DWITH_TESTS:BOOL=OFF
-DWITH_UTILITIES:BOOL=OFF
-DBoost_USE_STATIC_LIBS:BOOL=OFF
-DBOOST_ROOT:PATH=<INSTALL_DIR>
-DBoost_NO_BOOST_CMAKE:BOOL=${Boost_NO_BOOST_CMAKE}
)
......
......@@ -7,12 +7,10 @@ superbuild_add_project(pcl
-DPCL_ONLY_CORE_POINT_TYPES:BOOL=ON
-DBoost_NO_BOOST_CMAKE:BOOL=ON
-DBoost_USE_MULTITHREAD:BOOL=ON
-DBoost_USE_STATIC_LIBS:BOOL=OFF
-DPCL_BUILD_WITH_BOOST_DYNAMIC_LINKING_WIN32:BOOL=ON
-DBOOST_LIBRARYDIR:PATH=<INSTALL_DIR>/lib
-DBoost_LIBRARY_DIR_DEBUG:PATH=<INSTALL_DIR>/lib
-DBoost_LIBRARY_DIR_RELEASE:PATH=<INSTALL_DIR>/lib
-DEIGEN_INCLUDE_DIR=<INSTALL_DIR>/include/eigen3
-DQHULL_LIBRARY:FILEPATH=<INSTALL_DIR>/lib/${CMAKE_STATIC_LIBRARY_PREFIX}qhullstatic${CMAKE_STATIC_LIBRARY_SUFFIX}
-DQHULL_LIBRARY_DEBUG:FILEPATH=<INSTALL_DIR>/lib/${CMAKE_STATIC_LIBRARY_PREFIX}qhullstatic${CMAKE_STATIC_LIBRARY_SUFFIX}
-DBUILD_visualization:BOOL=OFF
......@@ -32,9 +30,13 @@ superbuild_add_project(pcl
-DWITH_MPI:BOOL=OFF
-DWITH_CUDA:BOOL=OFF
-DWITH_DOCS:BOOL=OFF
)
)
superbuild_add_extra_cmake_args(
-DPCL_DIR:PATH=<INSTALL_DIR>/share/pcl-1.10
)
# If on Windows and using MSVC < 2017, remove constexpr declarations
if (WIN32 AND MSVC AND MSVC_VERSION VERSION_LESS 1910)
superbuild_apply_patch(pcl msvc2015-compatibility "Remove constexpr declarations for MSVC 2015 support")
endif ()
\ No newline at end of file
endif ()
......@@ -2,4 +2,8 @@ superbuild_add_project(yaml
CMAKE_ARGS
-DCMAKE_CXX_STANDARD=11
-DCMAKE_CXX_STANDARD_REQUIRED=ON
)
)
superbuild_add_extra_cmake_args(
-DYAML_DIR:PATH=<INSTALL_DIR>/include/yaml-cpp
)
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