Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ip6
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
detectors
ip6
Commits
2abb4654
Commit
2abb4654
authored
2 years ago
by
David Lawrence
Committed by
Wouter Deconinck
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Allow user to turn off DDG4 requirement.
parent
b7636c33
No related branches found
No related tags found
1 merge request
!114
Allow user to turn off DDG4 requirement.
Pipeline
#33690
failed
2 years ago
Stage: config
Stage: initialize
Stage: test
Stage: docs
Stage: collect
Stage: deploy
Pipeline: athena
#33694
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+14
-2
14 additions, 2 deletions
CMakeLists.txt
with
14 additions
and
2 deletions
CMakeLists.txt
+
14
−
2
View file @
2abb4654
...
...
@@ -31,8 +31,20 @@ endif()
# Export compile commands as json for run-clang-tidy
set
(
CMAKE_EXPORT_COMPILE_COMMANDS ON
)
# Set required DD4hep components based on user input
set
(
USE_DDG4
"TRUE"
CACHE BOOL
"Require DD4hep DDG4 component"
)
set
(
DD4hep_required_components DDCore DDRec
)
if
(
${
USE_DDG4
}
)
list
(
APPEND DD4hep_required_components DDG4
)
endif
()
# The items passed to target_link_libraries below need DD4hep:: prepended
set
(
DD4hep_required_libraries
${
DD4hep_required_components
}
)
list
(
TRANSFORM DD4hep_required_libraries PREPEND DD4hep::
)
# Dependencies
find_package
(
DD4hep REQUIRED COMPONENTS
DDCore DDG4
)
find_package
(
DD4hep REQUIRED COMPONENTS
${
DD4hep_required_components
}
)
find_package
(
ActsDD4hep
)
if
(
ActsDD4hep_FOUND
)
add_compile_definitions
(
USE_ACTSDD4HEP
)
...
...
@@ -54,7 +66,7 @@ dd4hep_add_plugin(${a_lib_name}
USES
${
ActsDD4hep
}
ROOT::Core ROOT::Gdml
)
target_link_libraries
(
${
a_lib_name
}
PUBLIC DD4hep
::DDCore DD4hep::DDRec DD4hep::DDG4
PUBLIC
${
DD4hep
_required_libraries
}
)
#-----------------------------------------------------------------------------------
...
...
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