From e7a63e45aa5876e531e622df00dca9bc5c69e13d Mon Sep 17 00:00:00 2001 From: Riccardo Maria Bianchi <riccardo.maria.bianchi@cern.ch> Date: Fri, 30 Apr 2021 09:47:37 +0200 Subject: [PATCH] (cmake) add BUILD_ALL flag to compile all GeoModel subpackages --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 100947528..27478a1c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,6 +47,7 @@ find_package( SQLite3 3.7.17 ) # === Main targets built by this project === # 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_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) @@ -63,6 +64,12 @@ add_subdirectory(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) add_subdirectory(GeoModelTools) list( APPEND BUILT_PACKAGES "GeoModelTools") -- GitLab