Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Geant4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Ryan Bernard Calladine
Geant4
Commits
8261d889
Commit
8261d889
authored
9 years ago
by
Marco Clemencic
Browse files
Options
Downloads
Patches
Plain Diff
updated copying of Geant4 sources to CMT directories
parent
540197bf
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Geant4/G4config/copy_sources.cmake.in
+44
-14
44 additions, 14 deletions
Geant4/G4config/copy_sources.cmake.in
with
44 additions
and
14 deletions
Geant4/G4config/copy_sources.cmake.in
+
44
−
14
View file @
8261d889
# Normal packages
# Aliases (LHCb names -> G4 names)
set(parmodels_source parameterisations)
foreach(pack analysis digits_hits event geometry global graphics_reps intercoms
foreach(pack analysis digits_hits event geometry global graphics_reps intercoms
materials parmodels particles physics_lists processes readout run
materials parmodels particles physics_lists processes readout run
track tracking)
track tracking)
message(STATUS "Copying ${pack} sources")
if(${pack}_source)
set(src_pack ${${pack}_source})
else()
set(src_pack ${pack})
endif()
message(STATUS "Copying ${src_pack} sources to G4${pack}")
execute_process(COMMAND find ( -type d -a -name src
execute_process(COMMAND find ( -type d -a -name src
-a -not
(
-path "*test/*"
-o -path "*/abla/*" )
)
-a -not -path "*test/*" )
#-printf "copying ${pack}/%p\\n"
#-printf "copying ${
src_
pack}/%p\\n"
-exec mkdir -p "@G4DST@/G4${pack}/{}" ";"
-exec mkdir -p "@G4DST@/G4${pack}/{}" ";"
-exec cp -r "{}/." "@G4DST@/G4${pack}/{}" ";"
-exec cp -r "{}/." "@G4DST@/G4${pack}/{}" ";"
WORKING_DIRECTORY @G4SRC@/${pack})
WORKING_DIRECTORY @G4SRC@/${
src_
pack})
execute_process(COMMAND find ( -type d -a -name include
execute_process(COMMAND find ( -type d -a -name include
-a -not
(
-path "*test/*"
-o -path "*/abla/*" )
)
-a -not -path "*test/*" )
#-printf "copying ${pack}/%p\\n"
#-printf "copying ${pack}/%p\\n"
-exec mkdir -p "@G4DST@/G4${pack}/G4${pack}" ";"
-exec mkdir -p "@G4DST@/G4${pack}/G4${pack}" ";"
-exec cp -r "{}/." "@G4DST@/G4${pack}/G4${pack}" ";"
-exec cp -r "{}/." "@G4DST@/G4${pack}/G4${pack}" ";"
WORKING_DIRECTORY @G4SRC@/${pack})
WORKING_DIRECTORY @G4SRC@/${
src_
pack})
endforeach()
endforeach()
# UI packages
# UI packages
...
@@ -38,7 +46,7 @@ foreach(pack FukuiRenderer modeling OpenGL RayTracer Tree
...
@@ -38,7 +46,7 @@ foreach(pack FukuiRenderer modeling OpenGL RayTracer Tree
else()
else()
set(local_pack G4${pack})
set(local_pack G4${pack})
endif()
endif()
message(STATUS "Copying visualization/${pack} sources")
message(STATUS "Copying visualization/${pack} sources
to ${local_pack}
")
execute_process(COMMAND mkdir -p @G4DST@/${local_pack}/${pack}/src
execute_process(COMMAND mkdir -p @G4DST@/${local_pack}/${pack}/src
@G4DST@/${local_pack}/${local_pack})
@G4DST@/${local_pack}/${local_pack})
execute_process(COMMAND cp -r @G4SRC@/visualization/${pack}/src/.
execute_process(COMMAND cp -r @G4SRC@/visualization/${pack}/src/.
...
@@ -48,15 +56,15 @@ foreach(pack FukuiRenderer modeling OpenGL RayTracer Tree
...
@@ -48,15 +56,15 @@ foreach(pack FukuiRenderer modeling OpenGL RayTracer Tree
endforeach()
endforeach()
set(pack externals)
set(pack externals)
message(STATUS "Copying visualization/${pack} sources")
message(STATUS "Copying visualization/${pack} sources
to G4${pack}
")
execute_process(COMMAND find ( -type d -a -name src
execute_process(COMMAND find ( -type d -a -name src
-a -not
(
-path "*test/*"
-o -path "*/abla/*" )
)
-a -not -path "*test/*" )
#-printf "copying ${pack}/%p\\n"
#-printf "copying ${pack}/%p\\n"
-exec mkdir -p "@G4DST@/G4${pack}/{}" ";"
-exec mkdir -p "@G4DST@/G4${pack}/
externals/
{}" ";"
-exec cp -r "{}/." "@G4DST@/G4${pack}/{}" ";"
-exec cp -r "{}/." "@G4DST@/G4${pack}/
externals/
{}" ";"
WORKING_DIRECTORY @G4SRC@/visualization/${pack})
WORKING_DIRECTORY @G4SRC@/visualization/${pack})
execute_process(COMMAND find ( -type d -a -name include
execute_process(COMMAND find ( -type d -a -name include
-a -not
(
-path "*test/*"
-o -path "*/abla/*" )
)
-a -not -path "*test/*" )
#-printf "copying ${pack}/%p\\n"
#-printf "copying ${pack}/%p\\n"
-exec mkdir -p "@G4DST@/G4${pack}/G4${pack}" ";"
-exec mkdir -p "@G4DST@/G4${pack}/G4${pack}" ";"
-exec cp -r "{}/." "@G4DST@/G4${pack}/G4${pack}" ";"
-exec cp -r "{}/." "@G4DST@/G4${pack}/G4${pack}" ";"
...
@@ -65,7 +73,7 @@ execute_process(COMMAND find ( -type d -a -name include
...
@@ -65,7 +73,7 @@ execute_process(COMMAND find ( -type d -a -name include
# Vis packages
# Vis packages
set(pack gdml)
set(pack gdml)
message(STATUS "Copying persistency/${pack} sources")
message(STATUS "Copying persistency/${pack} sources
to ${local_pack}
")
set(local_pack G4GDML)
set(local_pack G4GDML)
execute_process(COMMAND mkdir -p @G4DST@/${local_pack}/src
execute_process(COMMAND mkdir -p @G4DST@/${local_pack}/src
@G4DST@/${local_pack}/schema
@G4DST@/${local_pack}/schema
...
@@ -76,3 +84,25 @@ execute_process(COMMAND cp -r @G4SRC@/persistency/${pack}/schema/.
...
@@ -76,3 +84,25 @@ execute_process(COMMAND cp -r @G4SRC@/persistency/${pack}/schema/.
@G4DST@/${local_pack}/schema)
@G4DST@/${local_pack}/schema)
execute_process(COMMAND cp -r @G4SRC@/persistency/${pack}/include/.
execute_process(COMMAND cp -r @G4SRC@/persistency/${pack}/include/.
@G4DST@/${local_pack}/${local_pack})
@G4DST@/${local_pack}/${local_pack})
# Examples
foreach(ex_name TestEm3 TestEm5 TestEm7 TestEm9)
message(STATUS "Copying examples/.../${ex_name} sources to G4examples/.../G4${ex_name}")
set(src @G4SRC@/../examples/extended/electromagnetic/${ex_name})
set(dest @G4DST@/G4examples/extended/electromagnetic/G4${ex_name})
execute_process(COMMAND mkdir -p ${dest}/include ${dest}/src)
execute_process(COMMAND cp -r ${src}/include/. ${dest}/include)
execute_process(COMMAND cp -r ${src}/src/. ${dest}/src)
execute_process(COMMAND cp -r ${src}/${ex_name}.cc ${dest})
endforeach()
foreach(ex_name Hadr00)
message(STATUS "Copying examples/.../${ex_name} sources to G4examples/.../G4${ex_name}")
set(src @G4SRC@/../examples/extended/hadronic/${ex_name})
set(dest @G4DST@/G4examples/extended/hadronic/G4${ex_name})
execute_process(COMMAND mkdir -p ${dest}/include ${dest}/src)
execute_process(COMMAND cp -r ${src}/include/. ${dest}/include)
execute_process(COMMAND cp -r ${src}/src/. ${dest}/src)
execute_process(COMMAND cp -r ${src}/${ex_name}.cc ${dest})
endforeach()
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