Warning, /geant4/examples/extended/persistency/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 #---Adding all persistency examples subdirectories explicitly
0002
0003 cmake_minimum_required(VERSION 3.16...3.27)
0004
0005 find_package(Geant4)
0006 include(${Geant4_USE_FILE})
0007
0008 #----------------------------------------------------------------------------
0009 # P01, P02 examples require ROOT, GCCXML, BUILD_SHARED_LIBS
0010 #
0011 find_package(ROOT QUIET)
0012 if(ROOT_FOUND AND Geant4_shared_FOUND)
0013 #if(ROOT_FOUND AND GCCXML)
0014 STRING(REGEX MATCH "6.*" VERSION6MATCH ${ROOT_VERSION})
0015 if(NOT VERSION6MATCH)
0016 message("-- G4 Examples : This example requires root6, disabled")
0017 return()
0018 else()
0019 add_subdirectory(P01)
0020 add_subdirectory(P02)
0021 endif()
0022 else()
0023 if(NOT ROOT_FOUND)
0024 message(STATUS "G4 Examples: ROOT package not found. ")
0025 endif()
0026 if(NOT Geant4_shared_FOUND)
0027 message(STATUS "G4 Examples: Shared Libraires not available.")
0028 endif()
0029 message(STATUS "P01, P02 disabled")
0030 endif()
0031
0032 #----------------------------------------------------------------------------
0033 # gdml examples require Geant4 build with gdml
0034 #
0035 if(Geant4_gdml_FOUND)
0036 add_subdirectory(gdml)
0037 else()
0038 message(STATUS "G4 Examples: GDML not installed --> gdml examples disabled")
0039 endif()