Skip to content
Snippets Groups Projects
CMakeLists.txt 1.82 KiB
Newer Older
Pere Mato's avatar
Pere Mato committed
cmake_minimum_required(VERSION 2.8.3 FATAL_ERROR)

project(DD4hep)
set(CMAKE_MODULE_PATH      ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake) 
set(LIBRARY_OUTPUT_PATH    ${PROJECT_BINARY_DIR}/lib)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
Pere Mato's avatar
Pere Mato committed

#---Options-------------------------------------------------------------------------
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)

find_package(ROOT REQUIRED)
if(DD4HEP_USE_XERCESC)
  find_package(XercesC)
endif()

Pere Mato's avatar
Pere Mato committed
#---Testing-------------------------------------------------------------------------
include(CTest)
enable_testing()
Pere Mato's avatar
Pere Mato committed
#---Documentation-------------------------------------------------------------------
include(DD4hepDoxygen)
#---DD4hep internal functions-------------------------------------------------------
include(DD4hep)

#---Packages------------------------------------------------------------------------
Pere Mato's avatar
Pere Mato committed
add_subdirectory(DDCore)
Pere Mato's avatar
Pere Mato committed
if(DD4HEP_WITH_GEANT4)
  add_subdirectory(DDG4)
#---Examples------------------------------------------------------------------------
add_subdirectory(DDExamples/UtilityApps)
add_subdirectory(DDExamples/AlignDet)

## Cannot use these ones anymore, since Frank has introduced lcio.....
##add_subdirectory(DDExamples/ILDExDet)
##add_subdirectory(DDExamples/ILDExReco)
##add_subdirectory(DDExamples/ILDExTest)
Pere Mato's avatar
Pere Mato committed
if(DD4HEP_WITH_GEANT4)
   add_subdirectory(DDExamples/CLICSiDSimu)
#   add_subdirectory(DDExamples/ILDExSimu)
Pere Mato's avatar
Pere Mato committed

#---Configuration-------------------------------------------------------------------
configure_file(cmake/thisdd4hep.csh thisdd4hep.csh @ONLY)
configure_file(cmake/thisdd4hep.sh  thisdd4hep.sh @ONLY)