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
68e68546
Commit
68e68546
authored
5 years ago
by
Markus Frank
Committed by
MarkusFrankATcernch
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Enable DDCMS for Geant4 builtin CLHEP
parent
10890c69
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/DDCMS/CMakeLists.txt
+13
-1
13 additions, 1 deletion
examples/DDCMS/CMakeLists.txt
with
13 additions
and
1 deletion
examples/DDCMS/CMakeLists.txt
+
13
−
1
View file @
68e68546
...
@@ -23,13 +23,25 @@ ENDIF()
...
@@ -23,13 +23,25 @@ ENDIF()
dd4hep_set_compiler_flags
()
dd4hep_set_compiler_flags
()
#==========================================================================
#==========================================================================
set
(
Geant4_builtin_clhep_FOUND ON
)
# Configure Geant4
if
(
DD4HEP_USE_GEANT4
)
find_package
(
Geant4 REQUIRED
)
if
(
NOT Geant4_builtin_clhep_FOUND
)
SET
(
DD4HEP_USE_CLHEP TRUE
)
else
()
include_directories
(
${
Geant4_INCLUDE_DIRS
}
)
endif
()
dd4hep_print
(
"|++> Setup Geant4 targets."
)
DD4HEP_SETUP_GEANT4_TARGETS
()
endif
()
# CLHEP dependent stuff
# CLHEP dependent stuff
if
(
NOT TARGET CLHEP::CLHEP
)
if
(
NOT TARGET CLHEP::CLHEP
)
# ensure we only look for CLHEP once
# ensure we only look for CLHEP once
find_package
(
CLHEP QUIET
)
find_package
(
CLHEP QUIET
)
endif
()
endif
()
if
(
TARGET CLHEP::CLHEP
)
if
(
TARGET CLHEP::CLHEP
OR Geant4_builtin_clhep_FOUND
)
dd4hep_print
(
"|++> CLHEP PRESENT. Building DDCMS examples."
)
dd4hep_print
(
"|++> CLHEP PRESENT. Building DDCMS examples."
)
else
()
else
()
dd4hep_print
(
"|++> CLHEP is not present. NOT building DDCMS examples."
)
dd4hep_print
(
"|++> CLHEP is not present. NOT building DDCMS examples."
)
...
...
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