Commit 3ff497c9 authored by Matt Clarkson's avatar Matt Clarkson

Provide default CMake options.

parent 97dc6295
......@@ -12,4 +12,5 @@
#
#============================================================================*/
option(BUILD_ArrayFire "Build ArrayFire." OFF)
option(BUILD_ArrayFire "Build ArrayFire." ON)
mark_as_advanced(BUILD_ArrayFire)
......@@ -12,7 +12,8 @@
#
#============================================================================*/
option(BUILD_Boost "Build Boost." OFF)
option(BUILD_Boost "Build Boost." ON)
mark_as_advanced(BUILD_Boost)
if(BUILD_Boost)
......
......@@ -12,4 +12,5 @@
#
#============================================================================*/
option(BUILD_Eigen "Build Eigen." OFF)
option(BUILD_Eigen "Build Eigen." ON)
mark_as_advanced(BUILD_Eigen)
......@@ -13,3 +13,4 @@
#============================================================================*/
option(BUILD_FLANN "Build FLANN." OFF)
mark_as_advanced(BUILD_FLANN)
......@@ -12,7 +12,8 @@
#
#============================================================================*/
option(BUILD_OpenCV "Build OpenCV." OFF)
option(BUILD_OpenCV "Build OpenCV." ON)
mark_as_advanced(BUILD_OpenCV)
if(BUILD_VTK AND APPLE AND BUILD_OpenCV AND "${VTK_VERSION}" STREQUAL "${DEFAULT_VTK_VERSION}")
set(VTK_VERSION "${FALLBACK_VTK_VERSION}")
......
......@@ -13,6 +13,8 @@
#============================================================================*/
option(BUILD_PCL "Build PCL." OFF)
mark_as_advanced(BUILD_PCL)
if(BUILD_PCL)
find_package(OpenGL REQUIRED)
option(BUILD_PCL_VIS "Build PCL Visualisation tools." OFF)
......
......@@ -12,8 +12,8 @@
#
#============================================================================*/
option(BUILD_Python_Boost "Build boost::python bindings." OFF)
option(BUILD_Python_PyBind "Build PyBind11 bindings." OFF)
option(BUILD_Python_Boost "Build boost::python bindings." ON)
mark_as_advanced(BUILD_Python_Boost)
if(BUILD_Python_Boost AND BUILD_Python_PyBind)
message(FATAL_ERROR "BUILD_Python_Boost and BUILD_Python_PyBind are mutually exclusive. Please pick one or the other!")
......
......@@ -13,6 +13,7 @@
#============================================================================*/
option(BUILD_UNITY_WRAPPER "Build Unity Wrapper." OFF)
mark_as_advanced(BUILD_UNITY_WRAPPER)
if(BUILD_UNITY_WRAPPER AND BUILD_SHARED_LIBS)
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build Shared Libraries" FORCE)
......
......@@ -13,6 +13,7 @@
#============================================================================*/
option(BUILD_VTK "Build VTK." OFF)
mark_as_advanced(BUILD_VTK)
set(DEFAULT_VTK_VERSION "v8.2.0")
set(FALLBACK_VTK_VERSION "v6.1.0") # Should only be needed on Mac, if PCL visualization tools are on, or OpenCV visualisation on.
......
......@@ -13,3 +13,4 @@
#============================================================================*/
option(BUILD_gflags "Build gflags." OFF)
mark_as_advanced(BUILD_gflags)
\ No newline at end of file
......@@ -13,6 +13,7 @@
#============================================================================*/
option(BUILD_glog "Build glog." OFF)
mark_as_advanced(BUILD_glog)
if(BUILD_glog AND NOT BUILD_gflags)
set(BUILD_gflags ON CACHE BOOL "Build gflags." FORCE)
......
......@@ -70,7 +70,7 @@ option(BUILD_SHARED_LIBS "Build Shared Libraries" OFF)
mark_as_advanced(BUILD_SHARED_LIBS)
option(BUILD_SUPERBUILD "Build SKSURGERYGPUCPP and the projects it depends on via SuperBuild.cmake." ON)
mark_as_advanced(BUILD_SUPERBUILD)
option(SKSURGERYGPUCPP_USE_OPENMP "Use OpenMP." OFF)
option(SKSURGERYGPUCPP_USE_OPENMP "Use OpenMP." ON)
mark_as_advanced(SKSURGERYGPUCPP_USE_OPENMP)
option(SKSURGERYGPUCPP_USE_CUDA "Use CUDA." OFF)
mark_as_advanced(SKSURGERYGPUCPP_USE_CUDA)
......@@ -107,29 +107,29 @@ endif()
# Also, if you don't want one, you can just search for the package name
# (e.g. VTK) in this file, and remove all those lines you don't want.
#######################################################################
include(sksAddgflags)
include(sksAddglog)
#include(sksAddgflags)
#include(sksAddglog)
include(sksAddEigen)
include(sksAddFLANN)
include(sksAddVTK)
#include(sksAddFLANN)
#include(sksAddVTK)
include(sksAddArrayFire)
include(sksAddOpenCV)
include(sksAddBoost)
include(sksAddPythonBindings)
include(sksAddPCL)
include(sksAddUnityWrapper)
#include(sksAddPCL)
#include(sksAddUnityWrapper)
######################################################################
# Add our Gui projects. If you don't want Gui stuff, remove this line.
######################################################################
include(sksAddGuiProjects)
#include(sksAddGuiProjects)
######################################################################
# Make sure at this point in this file, VTK is the correct version.
######################################################################
include(sksSetupVTKBackend)
#include(sksSetupVTKBackend)
##############################################################################
......@@ -181,7 +181,7 @@ endif()
######################################################################
# Check for Qt early, as VTK may need it in SuperBuild.
######################################################################
include(sksIncludeQt)
#include(sksIncludeQt)
######################################################################
......@@ -297,15 +297,15 @@ else()
endif()
# These are dependent on ordering
include(sksIncludegflags)
include(sksIncludeglog)
#include(sksIncludegflags)
#include(sksIncludeglog)
include(sksIncludeEigen)
include(sksIncludeBoost)
include(sksIncludePythonBindings)
include(sksIncludeArrayFire)
include(sksIncludeOpenCV)
include(sksIncludeVTK)
include(sksIncludePCL)
#include(sksIncludeVTK)
#include(sksIncludePCL)
######################################################################
......
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