Import Geant4 11.3.0 source tree
This commit is contained in:
@@ -14,10 +14,15 @@ if(GEANT4_ENABLE_TESTING)
|
||||
# - Core CTest
|
||||
enable_testing()
|
||||
include(CTest)
|
||||
include(G4TestAPI)
|
||||
|
||||
# - Geant4_DIR is needed to locate GeantConfig.cmake file required
|
||||
# by tests and examples
|
||||
set(Geant4_DIR ${PROJECT_BINARY_DIR} CACHE PATH "Current build directory")
|
||||
# for tests and examples that are built as direct subprojects
|
||||
# (as opposed to "build-and-test" type situations)
|
||||
set(Geant4_DIR ${PROJECT_BINARY_DIR})
|
||||
|
||||
# - Base URL for test reference files
|
||||
set(GEANT4_TEST_REFERENCES_URL "http://cern.ch/geant4-data/stt/references/")
|
||||
|
||||
# - Add datasets to testing environment
|
||||
geant4_get_datasetnames(_dslist)
|
||||
@@ -27,18 +32,13 @@ if(GEANT4_ENABLE_TESTING)
|
||||
list(APPEND GEANT4_TEST_ENVIRONMENT ${_dsenvvar}=${_dspath})
|
||||
endforeach()
|
||||
|
||||
# - Add base URL for test reference files
|
||||
set(GEANT4_TEST_REFERENCES_URL "http://cern.ch/geant4-data/stt/references/" CACHE
|
||||
STRING "base URL for test reference files")
|
||||
mark_as_advanced(GEANT4_TEST_REFERENCES_URL)
|
||||
|
||||
# - Add TOOLS_FONT_PATH if freetype enabled
|
||||
# - Add TOOLS_FONT_PATH to testing environment if required
|
||||
if(GEANT4_USE_FREETYPE)
|
||||
list(APPEND GEANT4_TEST_ENVIRONMENT TOOLS_FONT_PATH=${PROJECT_SOURCE_DIR}/source/externals/g4tools/fonts)
|
||||
endif()
|
||||
|
||||
# - Configure 'G4RunManagerFactory::CreateRunManager(G4RunManagerType::Default)'
|
||||
# to use TBB
|
||||
# to use TBB if required
|
||||
if(GEANT4_BUILD_MULTITHREADED AND GEANT4_USE_TBB)
|
||||
list(APPEND GEANT4_TEST_ENVIRONMENT G4RUN_MANAGER_TYPE=TBB)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user