diff --git a/UtilityApps/CMakeLists.txt b/UtilityApps/CMakeLists.txt index e200df678aa79234f94173b222d8820cb898fe2d..1b74d2037324e74e664487b8ae796ca8aecdeba9 100644 --- a/UtilityApps/CMakeLists.txt +++ b/UtilityApps/CMakeLists.txt @@ -35,14 +35,16 @@ dd4hep_add_executable( dumpdetector USES DDRec OPTIONAL [GEANT4 REQUIRED SOURCES src/dumpdetector.cpp]) #----------------------------------------------------------------------------------- -dd4hep_add_executable(test_surfaces - USES DDRec DDTest - OPTIONAL [LCIO REQUIRED SOURCES src/test_surfaces.cpp]) -#----------------------------------------------------------------------------------- -dd4hep_add_executable(test_cellid_position_converter - USES DDRec DDTest - OPTIONAL [LCIO REQUIRED SOURCES src/test_cellid_position_converter.cpp]) -#----------------------------------------------------------------------------------- +if(BUILD_TESTING) + dd4hep_add_executable(test_surfaces + USES DDRec DDTest + OPTIONAL [LCIO REQUIRED SOURCES src/test_surfaces.cpp]) + #----------------------------------------------------------------------------------- + dd4hep_add_executable(test_cellid_position_converter + USES DDRec DDTest + OPTIONAL [LCIO REQUIRED SOURCES src/test_cellid_position_converter.cpp]) + #----------------------------------------------------------------------------------- +endif() dd4hep_add_dictionary( G__eve SOURCES src/EvNavHandler.h LINKDEF src/LinkDef.h )