Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Project Juggler
Manage
Activity
Members
Labels
Plan
Issues
32
Issue boards
Milestones
Wiki
Code
Merge requests
21
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Project Juggler
Commits
71badeb9
Commit
71badeb9
authored
8 months ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
feat: allow disabling of building of tracking algorithms
parent
53413fd2
No related branches found
No related tags found
1 merge request
!546
feat: allow disabling of building of tracking algorithms
Pipeline
#97324
failed with stages
in 4 hours, 29 minutes, and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+19
-13
19 additions, 13 deletions
CMakeLists.txt
with
19 additions
and
13 deletions
CMakeLists.txt
+
19
−
13
View file @
71badeb9
...
...
@@ -8,6 +8,8 @@ cmake_policy(SET CMP0074 NEW)
project
(
Juggler VERSION 4.3.0
)
option
(
JUGGLER_BUILD_TRACKING
"Build tracking algorithms"
TRUE
)
set
(
CMAKE_CXX_STANDARD 20 CACHE STRING
""
)
if
(
NOT CMAKE_CXX_STANDARD MATCHES
"20"
)
message
(
FATAL_ERROR
"Unsupported C++ standard:
${
CMAKE_CXX_STANDARD
}
"
)
...
...
@@ -65,19 +67,21 @@ add_definitions("-Dpodio_VERSION_PATCH=${podio_VERSION_PATCH}")
find_package
(
ROOT COMPONENTS Core RIO Tree MathCore GenVector Geom REQUIRED
)
find_package
(
DD4hep COMPONENTS DDRec REQUIRED
)
find_package
(
Acts REQUIRED COMPONENTS Core PluginIdentification PluginTGeo PluginDD4hep PluginJson
)
set
(
Acts_VERSION_MIN
"20.2.0"
)
set
(
Acts_VERSION
"
${
Acts_VERSION_MAJOR
}
.
${
Acts_VERSION_MINOR
}
.
${
Acts_VERSION_PATCH
}
"
)
if
(
${
Acts_VERSION
}
VERSION_LESS
${
Acts_VERSION_MIN
}
AND NOT
"
${
Acts_VERSION
}
"
STREQUAL
"9.9.9"
)
message
(
FATAL_ERROR
"Acts version
${
Acts_VERSION_MIN
}
or higher required, but
${
Acts_VERSION
}
found"
)
if
(
JUGGLER_BUILD_TRACKING
)
find_package
(
Acts REQUIRED COMPONENTS Core PluginIdentification PluginTGeo PluginDD4hep PluginJson
)
set
(
Acts_VERSION_MIN
"20.2.0"
)
set
(
Acts_VERSION
"
${
Acts_VERSION_MAJOR
}
.
${
Acts_VERSION_MINOR
}
.
${
Acts_VERSION_PATCH
}
"
)
if
(
${
Acts_VERSION
}
VERSION_LESS
${
Acts_VERSION_MIN
}
AND NOT
"
${
Acts_VERSION
}
"
STREQUAL
"9.9.9"
)
message
(
FATAL_ERROR
"Acts version
${
Acts_VERSION_MIN
}
or higher required, but
${
Acts_VERSION
}
found"
)
endif
()
add_definitions
(
"-DActs_VERSION_MAJOR=
${
Acts_VERSION_MAJOR
}
"
)
add_definitions
(
"-DActs_VERSION_MINOR=
${
Acts_VERSION_MINOR
}
"
)
add_definitions
(
"-DActs_VERSION_PATCH=
${
Acts_VERSION_PATCH
}
"
)
# Get ActsCore path for ActsExamples include
get_target_property
(
ActsCore_LOCATION ActsCore LOCATION
)
get_filename_component
(
ActsCore_PATH
${
ActsCore_LOCATION
}
DIRECTORY
)
endif
()
add_definitions
(
"-DActs_VERSION_MAJOR=
${
Acts_VERSION_MAJOR
}
"
)
add_definitions
(
"-DActs_VERSION_MINOR=
${
Acts_VERSION_MINOR
}
"
)
add_definitions
(
"-DActs_VERSION_PATCH=
${
Acts_VERSION_PATCH
}
"
)
# Get ActsCore path for ActsExamples include
get_target_property
(
ActsCore_LOCATION ActsCore LOCATION
)
get_filename_component
(
ActsCore_PATH
${
ActsCore_LOCATION
}
DIRECTORY
)
## Dependencies
find_package
(
algorithms
)
...
...
@@ -91,7 +95,9 @@ add_subdirectory(JugDigi)
add_subdirectory
(
JugFast
)
add_subdirectory
(
JugPID
)
add_subdirectory
(
JugReco
)
add_subdirectory
(
JugTrack
)
if
(
JUGGLER_BUILD_TRACKING
)
add_subdirectory
(
JugTrack
)
endif
()
## CMake config
gaudi_install
(
CMAKE
)
...
...
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