Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
cc28ae67
Commit
cc28ae67
authored
9 years ago
by
Markus Frank
Browse files
Options
Downloads
Patches
Plain Diff
Adapt SimpleDetector to new make.
parent
8941f1a2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/ClientTests/CMakeLists.txt
+2
-2
2 additions, 2 deletions
examples/ClientTests/CMakeLists.txt
examples/SimpleDetector/CMakeLists.txt
+24
-22
24 additions, 22 deletions
examples/SimpleDetector/CMakeLists.txt
with
26 additions
and
24 deletions
examples/ClientTests/CMakeLists.txt
+
2
−
2
View file @
cc28ae67
...
...
@@ -15,7 +15,7 @@ include ( ${DD4hep_DIR}/cmake/DD4hep.cmake )
#-----------------------------------------------------------------------------------
dd4hep_configure_output
()
dd4hep_package
(
ClientTests MAJOR 0 MINOR 0 PATCH 1
USES [ROOT REQUIRED COMPONENTS Geom GenVector
MathCore
]
USES [ROOT REQUIRED COMPONENTS Geom GenVector]
[DD4hep REQUIRED COMPONENTS DDCore]
OPTIONAL XERCESC
INCLUDE_DIRS include
)
...
...
@@ -28,7 +28,7 @@ dd4hep_configure_scripts( ClientTests DEFAULT_SETUP WITH_TESTS)
#*** Testing *********************************************************************
foreach
(
test Assemblies BoxTrafos IronCylinder LheD_tracker MagnetFields MaterialTester MiniTel SectorBarrelCalorimeter SiliconBlock NestedDetectors
)
foreach
(
type lcdd gdml vis
)
dd4hep_add_test_reg
(
ClientTests_converter_
simple_
${
type
}
_
${
test
}
dd4hep_add_test_reg
(
ClientTests_converter_
${
type
}
_
${
test
}
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_ClientTests.sh"
EXEC_ARGS geoConverter -compact2
${
type
}
-input file:
${
CMAKE_CURRENT_SOURCE_DIR
}
/compact/
${
test
}
.xml -output file:
${
test
}
.
${
type
}
REGEX_PASS
" Handled [1-9][0-9]* volumes"
)
...
...
This diff is collapsed.
Click to expand it.
examples/SimpleDetector/CMakeLists.txt
+
24
−
22
View file @
cc28ae67
...
...
@@ -13,29 +13,31 @@ cmake_minimum_required(VERSION 2.8.3 FATAL_ERROR)
include
(
${
DD4hep_DIR
}
/cmake/DD4hep.cmake
)
#-----------------------------------------------------------------------------------
dd4hep_configure_output
()
dd4hep_package
(
SimpleDetector MAJOR 0 MINOR 0 PATCH 1
USES [ROOT REQUIRED COMPONENTS Geom]
[DD4hep REQUIRED COMPONENTS DDCore DDRec]
)
dd4hep_configure_output
()
dd4hep_package
(
SimpleDetector MAJOR 0 MINOR 0 PATCH 1
USES [ROOT REQUIRED COMPONENTS Geom GenVector]
[DD4hep REQUIRED COMPONENTS DDCore DDRec]
OPTIONAL XERCESC
INCLUDE_DIRS include
)
dd4hep_add_plugin
(
SimpleDetector SOURCES src/*.cpp
)
dd4hep_install_dir
(
compact DESTINATION examples/SimpleDetector
)
#---Testing-------------------------------------------------------------------------
dd4hep_configure_scripts
(
SimpleDetector DEFAULT_SETUP WITH_TESTS
)
#-----------------------------------------------------------------------------------
dd4hep_add_plugin
(
SimpleDetector SOURCES src/*.cpp
)
dd4hep_install_dir
(
compact DESTINATION
${
DD4hep_DIR
}
/examples/ClientTests
)
#-----------------------------------------------------------------------------------
dd4hep_configure_scripts
(
SimpleDetector DEFAULT_SETUP WITH_TESTS
)
#----- Tests for SimpleDetector: here we simply require that at least 100 volumes have been converted
foreach
(
typ lcdd gdml vis
)
dd4hep_add_test_reg
(
"test_converter_Simple_CLIC_
${
typ
}
"
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_SimpleDetector.sh"
EXEC_ARGS geoConverter -compact2
${
typ
}
-input file:
${
CMAKE_CURRENT_SOURCE_DIR
}
/compact/Simple_CLIC.xml -output file:Simple_CLIC.
${
typ
}
REGEX_PASS
" Handled [1-9][0-9][0-9]* volumes"
)
endforeach
()
#*** Testing *********************************************************************
foreach
(
test Simple_ILD
)
foreach
(
type lcdd gdml vis
)
dd4hep_add_test_reg
(
SimpleDetector_converter_
${
type
}
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_SimpleDetector.sh"
EXEC_ARGS geoConverter -compact2
${
type
}
-input file:
${
CMAKE_CURRENT_SOURCE_DIR
}
/compact/
${
test
}
.xml -output file:
${
test
}
.
${
type
}
REGEX_PASS
" Handled [1-9][0-9]* volumes"
)
endforeach
(
type
)
endforeach
(
test
)
foreach
(
typ lcdd gdml vis
)
dd4hep_add_test_reg
(
"test_converter_Simple_ILD_
${
typ
}
"
dd4hep_add_test_reg
(
SimpleDetector_sim_ILD
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_SimpleDetector.sh"
EXEC_ARGS geoConverter -compact2
${
typ
}
-input file:
${
CMAKE_CURRENT_SOURCE_DIR
}
/compact/Simple_ILD.xml -output file:Simple_ILD.
${
typ
}
REGEX_PASS
" Handled [1-9][0-9][0-9]* volumes"
)
endforeach
()
EXEC_ARGS dd_sim file:
${
CMAKE_CURRENT_SOURCE_DIR
}
/compact/Simple_ILD.xml file:
${
CMAKE_CURRENT_SOURCE_DIR
}
/examples/sequences.xml
REQUIRES DDG4 Geant4
REGEX_PASS
"Event 9 Begin event action"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment