From 70ae4660e5a83b811d363b4d5d121ebb9281ada5 Mon Sep 17 00:00:00 2001
From: Frank Gaede <frank.gaede@desy.de>
Date: Mon, 29 Apr 2013 09:53:04 +0000
Subject: [PATCH] - added option DD4HEP_WITH_LCIO (default on) to allow to
build without LCIO (and without ILD examples)
---
CMakeLists.txt | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1281f4992..6550ab046 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,6 +9,7 @@ set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
option(DD4HEP_USE_XERCESC "Enable 'Detector Builders' based on XercesC" OFF)
option(DD4HEP_USE_PYROOT "Enable 'Detector Builders' based on PyROOT" ON)
option(DD4HEP_WITH_GEANT4 "Enable the simulation part based on Geant4" OFF)
+option(DD4HEP_WITH_LCIO "Build ILD examples with LCIO - builds LCIO as external project or uses pre-installed" ON)
find_package(ROOT REQUIRED)
if(DD4HEP_USE_XERCESC)
@@ -36,10 +37,14 @@ add_subdirectory(DDExamples/UtilityApps)
add_subdirectory(DDExamples/AlignDet)
add_subdirectory(DDExamples/CLICSiD)
+
## --- ILD examples -----
+if( DD4HEP_WITH_LCIO )
add_subdirectory(DDExamples/ILDExDet)
add_subdirectory(DDExamples/ILDExReco)
add_subdirectory(DDExamples/ILDExTest)
+endif()
+
if(DD4HEP_WITH_GEANT4)
add_subdirectory(DDExamples/CLICSiDSimu)
--
GitLab