Skip to content
Snippets Groups Projects

(cmake) add BUILD_ALL flag to compile all GeoModel sub-packages

Merged Riccardo Maria Bianchi requested to merge cmake-build-all into master
1 file
+ 7
0
Compare changes
  • Side-by-side
  • Inline
+ 7
0
@@ -47,6 +47,7 @@ find_package( SQLite3 3.7.17 )
@@ -47,6 +47,7 @@ find_package( SQLite3 3.7.17 )
# === Main targets built by this project ===
# === Main targets built by this project ===
# switches to let users build specific packages on request
# switches to let users build specific packages on request
 
option(GEOMODEL_BUILD_ALL "Enable the build of all GeoModel sub-packages" OFF)
option(GEOMODEL_BUILD_TOOLS "Enable the build of GeoModelTools" OFF)
option(GEOMODEL_BUILD_TOOLS "Enable the build of GeoModelTools" OFF)
option(GEOMODEL_BUILD_EXAMPLES "Enable the build of GeoModelExamples" OFF)
option(GEOMODEL_BUILD_EXAMPLES "Enable the build of GeoModelExamples" OFF)
option(GEOMODEL_BUILD_EXAMPLES_W_GEANT4 "Enable the build of GeoModelExamples, including the ones concerning the interface GeoModel->Geant4" OFF)
option(GEOMODEL_BUILD_EXAMPLES_W_GEANT4 "Enable the build of GeoModelExamples, including the ones concerning the interface GeoModel->Geant4" OFF)
@@ -63,6 +64,12 @@ add_subdirectory(GeoModelIO)
@@ -63,6 +64,12 @@ add_subdirectory(GeoModelIO)
list( APPEND BUILT_PACKAGES "GeoModelIO")
list( APPEND BUILT_PACKAGES "GeoModelIO")
 
if(GEOMODEL_BUILD_ALL)
 
set(GEOMODEL_BUILD_TOOLS TRUE)
 
set(GEOMODEL_BUILD_VISUALIZATION TRUE)
 
set(GEOMODEL_BUILD_FULLSIMLIGHT TRUE)
 
endif()
 
if(GEOMODEL_BUILD_TOOLS)
if(GEOMODEL_BUILD_TOOLS)
add_subdirectory(GeoModelTools)
add_subdirectory(GeoModelTools)
list( APPEND BUILT_PACKAGES "GeoModelTools")
list( APPEND BUILT_PACKAGES "GeoModelTools")
Loading