Commit b1a3dc90 authored by Nicolas Cadart's avatar Nicolas Cadart
Browse files

Clean CMake files

- Remove unused install path for individual sub-projects
- Use same CMake boolean convention (ON/OFF) for better clarity
parent 184d827d
......@@ -3,10 +3,9 @@ superbuild_add_project(ceres
CMAKE_ARGS
-DCMAKE_CXX_STANDARD=11
-DCMAKE_CXX_STANDARD_REQUIRED=true
-DCMAKE_CXX_STANDARD_REQUIRED=ON
-DBUILD_TESTING=OFF
-DBUILD_EXAMPLES=OFF
-DGFLAGS=OFF
-DEIGEN_INCLUDE_DIR_HINTS=<INSTALL_DIR>/include/eigen3
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>/ceres
-DBUILD_TESTING=false
-DBUILD_EXAMPLES=false
-DGFLAGS=false
)
......@@ -4,5 +4,5 @@ superbuild_add_project(eigen
${SuperBuild_PROJECTS_DIR}/patches/eigen.cmake.language_support.cmake
<SOURCE_DIR>/cmake/language_support.cmake
CMAKE_ARGS
-DEIGEN_BUILD_PKGCONFIG=off
-DEIGEN_BUILD_PKGCONFIG=OFF
)
superbuild_add_project(glog
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>/glog
-DBUILD_TESTING=false
-DWITH_GFLAGS=false
-DBUILD_TESTING=OFF
-DWITH_GFLAGS=OFF
)
......@@ -6,13 +6,13 @@
superbuild_add_project(liblas
DEPENDS boost
CMAKE_ARGS
-DWITH_GDAL:BOOL=FALSE
-DWITH_GDAL:BOOL=OFF
-DBUILD_OSGEO4W:BOOL=OFF
-DWITH_GEOTIFF:BOOL=FALSE
-DWITH_LASZIP:BOOL=FALSE
-DWITH_TESTS:BOOL=FALSE
-DWITH_UTILITIES:BOOL=FALSE
-DBoost_USE_STATIC_LIBS:BOOL=FALSE)
-DWITH_GEOTIFF:BOOL=OFF
-DWITH_LASZIP:BOOL=OFF
-DWITH_TESTS:BOOL=OFF
-DWITH_UTILITIES:BOOL=OFF
-DBoost_USE_STATIC_LIBS:BOOL=OFF)
# this patch is commited upstream at 4dbc30a7e7e099cbe01a7c192ec19d231cc26894
superbuild_apply_patch(liblas respect-with-geotiff
......
......@@ -5,5 +5,4 @@ superbuild_add_project(nanoflann
-DBUILD_EXAMPLES=OFF
-DBUILD_TESTS=OFF
-DEIGEN3_DIR=<INSTALL_DIR>/include/eigen3
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>/nanoflann
)
......@@ -3,9 +3,8 @@ superbuild_add_project(opencv
CMAKE_ARGS
-DCMAKE_CXX_STANDARD=11
-DCMAKE_CXX_STANDARD_REQUIRED=true
-DCMAKE_CXX_STANDARD_REQUIRED=ON
-DEIGEN_INCLUDE_PATH=<INSTALL_DIR>/include/eigen3
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>/opencv
-DWITH_FFMPEG=ON
-DWITH_TBB=ON
-DWITH_GTK=ON
......@@ -14,7 +13,7 @@ superbuild_add_project(opencv
-DWITH_CUBLAS=ON
-DCUDA_NVCC_FLAGS=-D_FORCE_INLINES
-DWITH_LIBV4L=ON
-DBUILD_TESTING=false
-DBUILD_EXAMPLES=false
-DGFLAGS=false
-DBUILD_TESTING=OFF
-DBUILD_EXAMPLES=OFF
-DGFLAGS=OFF
)
......@@ -2,7 +2,7 @@ set(pv_cmake_options "")
find_package(Protobuf)
if (Protobuf_FOUND)
message(MESSAGE "Found a system-wide Protobuf library, tell VTK to use it to avoid runtime version mismatch")
set(VTK_USE_SYSTEM_PROTOBUF True CACHE BOOL "Tell paraview to use the system-wide Protobuf that CMake found, to avoid runtime version mismatch.")
set(VTK_USE_SYSTEM_PROTOBUF ON CACHE BOOL "Tell paraview to use the system-wide Protobuf that CMake found, to avoid runtime version mismatch.")
list(APPEND pv_cmake_options "-DVTK_USE_SYSTEM_PROTOBUF:BOOL=${VTK_USE_SYSTEM_PROTOBUF}" )
endif()
superbuild_add_project(paraview
......@@ -17,73 +17,73 @@ superbuild_add_project(paraview
-DPARAVIEW_BUILD_QT_GUI:BOOL=ON
-DPARAVIEW_ENABLE_PYTHON:BOOL=ON
-DPARAVIEW_ENABLE_CATALYST:BOOL=OFF
-DPARAVIEW_ENABLE_VTK_MODULES_AS_NEEDED:BOOL=FALSE
-DPARAVIEW_ENABLE_WEB:BOOL=FALSE
-DPARAVIEW_ENABLE_MATPLOTLIB:BOOL=FALSE
-DPARAVIEW_ENABLE_SPYPLOT_MARKERS:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_AcceleratedAlgorithms:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_AdiosReader:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_AnalyzeNIfTIIO:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_ArrowGlyph:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_Catalyst:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_CDIReader:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_CoProcessingScriptGenerator:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_EyeDomeLighting:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_ForceTime:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_GeodesicMeasurement:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_GMVReader:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_H5PartReader:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_LagrangianParticleTracker:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_MantaView:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_MobileRemoteControl:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_Moments:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_NonOrthogonalSource:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_PacMan:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_PointSprite:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_PointCloudRepresentation:BOOL=TRUE
-DPARAVIEW_AUTOLOAD_PLUGIN_PointCloudRepresentation:BOOL=TRUE
-DPARAVIEW_BUILD_PLUGIN_EyeDomeLighting:BOOL=TRUE
-DPARAVIEW_AUTOLOAD_PLUGIN_EyeDomeLighting:BOOL=TRUE
-DPARAVIEW_BUILD_PLUGIN_PrismPlugin:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_pvblot:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_QuadView:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_RGBZView:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_SLACTools:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_SciberQuestToolKit:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_StreamLinesRepresentation:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_StreamingParticles:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_SierraPlotTools:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_SurfaceLIC:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_ThickenLayeredCells:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_UncertaintyRendering:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_VRPlugin:BOOL=FALSE
-DPARAVIEW_BUILD_PLUGIN_VaporPlugin:BOOL=FALSE
-DHDF5_ENABLE_EMBEDDED_LIBINFO:BOOL=FALSE
-DHDF5_ENABLE_DIRECT_VFD:BOOL=FALSE
-DPARAVIEW_ENABLE_EMBEDDED_DOCUMENTATION:BOOL=FALSE
-DPARAVIEW_CLIENT_RENDER_SERVER_TESTS:BOOL=FALSE
-DPARAVIEW_COLLABORATION_TESTING:BOOL=FALSE
-DVTK_BUILD_QT_DESIGNER_PLUGIN:BOOL=FALSE
-DPARAVIEW_ENABLE_VTK_MODULES_AS_NEEDED:BOOL=OFF
-DPARAVIEW_ENABLE_WEB:BOOL=OFF
-DPARAVIEW_ENABLE_MATPLOTLIB:BOOL=OFF
-DPARAVIEW_ENABLE_SPYPLOT_MARKERS:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_AcceleratedAlgorithms:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_AdiosReader:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_AnalyzeNIfTIIO:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_ArrowGlyph:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_Catalyst:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_CDIReader:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_CoProcessingScriptGenerator:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_EyeDomeLighting:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_ForceTime:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_GeodesicMeasurement:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_GMVReader:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_H5PartReader:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_LagrangianParticleTracker:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_MantaView:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_MobileRemoteControl:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_Moments:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_NonOrthogonalSource:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_PacMan:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_PointSprite:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_PointCloudRepresentation:BOOL=ON
-DPARAVIEW_AUTOLOAD_PLUGIN_PointCloudRepresentation:BOOL=ON
-DPARAVIEW_BUILD_PLUGIN_EyeDomeLighting:BOOL=ON
-DPARAVIEW_AUTOLOAD_PLUGIN_EyeDomeLighting:BOOL=ON
-DPARAVIEW_BUILD_PLUGIN_PrismPlugin:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_pvblot:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_QuadView:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_RGBZView:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_SLACTools:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_SciberQuestToolKit:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_StreamLinesRepresentation:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_StreamingParticles:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_SierraPlotTools:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_SurfaceLIC:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_ThickenLayeredCells:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_UncertaintyRendering:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_VRPlugin:BOOL=OFF
-DPARAVIEW_BUILD_PLUGIN_VaporPlugin:BOOL=OFF
-DHDF5_ENABLE_EMBEDDED_LIBINFO:BOOL=OFF
-DHDF5_ENABLE_DIRECT_VFD:BOOL=OFF
-DPARAVIEW_ENABLE_EMBEDDED_DOCUMENTATION:BOOL=OFF
-DPARAVIEW_CLIENT_RENDER_SERVER_TESTS:BOOL=OFF
-DPARAVIEW_COLLABORATION_TESTING:BOOL=OFF
-DVTK_BUILD_QT_DESIGNER_PLUGIN:BOOL=OFF
-DVTK_QT_VERSION:STRING=${qt_version}
-DPARAVIEW_QT_VERSION:STRING=${qt_version}
-DVTK_RENDERING_BACKEND:STRING=OpenGL2
-DVTK_LEGACY_SILENT:BOOL=TRUE
-DVTK_LEGACY_SILENT:BOOL=ON
${pv_cmake_options}
-DPARAVIEW_BUILD_PLUGIN_PythonQtPlugin:BOOL=TRUE
-DPARAVIEW_BUILD_PLUGIN_PythonQtPlugin:BOOL=ON
-DPYTHONQT_DIR:PATH=<INSTALL_DIR>
#-DPYTHONQT_INCLUDE_DIR:PATH=<INSTALL_DIR>/include/PythonQt
#-DPYTHONQT_LIBRARY:PATH=<INSTALL_DIR>/lib/libPythonQt.so
-DModule_vtklibproj4:BOOL=TRUE
-DModule_vtklibproj4:BOOL=ON
# beginning of modules required when opening a .series
-DModule_vtkIOAMR:BOOL=TRUE
-DModule_vtkIOLSDyna:BOOL=TRUE
-DModule_vtkIOParallelLSDyna:BOOL=TRUE
-DModule_vtkIOTecplotTable:BOOL=TRUE
-DModule_vtkIOTRUCHAS:BOOL=TRUE
-DModule_vtkIOVPIC:BOOL=TRUE
-DModule_vtkIOAMR:BOOL=ON
-DModule_vtkIOLSDyna:BOOL=ON
-DModule_vtkIOParallelLSDyna:BOOL=ON
-DModule_vtkIOTecplotTable:BOOL=ON
-DModule_vtkIOTRUCHAS:BOOL=ON
-DModule_vtkIOVPIC:BOOL=ON
# end of modules required when opening a .series
-DPQWIDGETS_DISABLE_QTWEBKIT:BOOL=ON
......
......@@ -3,25 +3,25 @@ superbuild_add_project(pcl
CMAKE_ARGS
-DCMAKE_CXX_STANDARD=11
-DCMAKE_CXX_STANDARD_REQUIRED=true
-DBoost_NO_BOOST_CMAKE:BOOL=true
-DBoost_USE_MULTITHREAD=ON
-DBoost_USE_STATIC_LIBS=OFF
-DBoost_USE_STATIC=OFF
-DCMAKE_CXX_STANDARD_REQUIRED:BOOL=ON
-DBoost_NO_BOOST_CMAKE:BOOL=ON
-DBoost_USE_MULTITHREAD:BOOL=ON
-DBoost_USE_STATIC_LIBS:BOOL=OFF
-DBoost_USE_STATIC: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
-DPCL_BUILD_WITH_BOOST_DYNAMIC_LINKING_WIN32=true
-DBOOST_LIBRARYDIR: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
-DBUILD_examples:BOOL=OFF
-DBUILD_tools:BOOL=OFF
-DBUILD_apps:BOOL=OFF
-DBUILD_OPENNI:BOOL=OFF
-DBUILD_recognition:BOOL=OFF
-DEIGEN_INCLUDE_DIR=<INSTALL_DIR>/include/eigen3
-DWITH_PNG:BOOL=ON
-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}
-DWITH_OPENNI:BOOL=OFF
-DWITH_QT:BOOL=OFF
-DWITH_VTK:BOOL=OFF
......
......@@ -7,6 +7,5 @@ else()
endif()
superbuild_add_project(qhull
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>/qhull
-Dqhull_TARGETS_INSTALL=${qhull_STATIC}
)
superbuild_add_project(yaml
DEPENDS
CMAKE_ARGS
-DCMAKE_CXX_STANDARD=11
-DCMAKE_CXX_STANDARD_REQUIRED=true
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>/yaml
-DGFLAGS=false
-DCMAKE_CXX_STANDARD_REQUIRED=ON
)
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