Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SuperElastix
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
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
Mirrors
SuperElastix
Commits
d4d774fa
Commit
d4d774fa
authored
9 years ago
by
Kasper Marstal
Browse files
Options
Downloads
Patches
Plain Diff
ENH: Add USE_SYSTEM_ELASTIX option
parent
b5dfb264
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Modules/Components/Elastix/ModuleElastix.cmake
+1
-0
1 addition, 0 deletions
Modules/Components/Elastix/ModuleElastix.cmake
SuperBuild/CMakeLists.txt
+12
-3
12 additions, 3 deletions
SuperBuild/CMakeLists.txt
with
13 additions
and
3 deletions
Modules/Components/Elastix/ModuleElastix.cmake
+
1
−
0
View file @
d4d774fa
...
...
@@ -2,6 +2,7 @@
set
(
MODULE ModuleElastix
)
if
(
NOT EXISTS
${
ELASTIX_USE_FILE
}
)
set
(
ELASTIX_USE_FILE
)
message
(
FATAL_ERROR
"
${
MODULE
}
could not find ELASTIX_USE_FILE. Use the SuperBuild or manually point the ELASTIX_USE_FILE CMake variable to the UseElastix.cmake file in the root of your elastix build tree."
)
endif
()
...
...
This diff is collapsed.
Click to expand it.
SuperBuild/CMakeLists.txt
+
12
−
3
View file @
d4d774fa
...
...
@@ -70,8 +70,9 @@ endif()
# ---------------------------------------------------------------------
# Build GoogleTest
mark_as_advanced
(
USE_SYSTEM_GOOGLETEST
)
option
(
USE_SYSTEM_GOOGLETEST
"Use a pre-compiled version of GoogleTest. "
OFF
)
mark_as_advanced
(
USE_SYSTEM_GOOGLETEST
)
mark_as_advanced
(
USE_SYSTEM_GOOGLETEST
)
if
(
SUPERELASTIX_BUILD_TESTING
)
if
(
USE_SYSTEM_GOOGLETEST
)
find_package
(
GTest REQUIRED
)
...
...
@@ -83,11 +84,19 @@ endif()
# ---------------------------------------------------------------------
# Build Elastix
# TODO: Add USE_SYSTEM_ELASTICLEGACY option
mark_as_advanced
(
SUPERELASTIX_BUILD_ELASTIX
)
option
(
SUPERELASTIX_BUILD_ELASTIX ON
)
if
(
SUPERELASTIX_BUILD_ELASTIX
)
include
(
ExternalElastix
)
if
(
USE_SYSTEM_ELASTIX
)
if
(
NOT EXISTS
${
ELASTIX_USE_FILE
}
)
# Expose CMake variable to user
set
(
ELASTIX_USE_FILE
)
# Stop the build
message
(
FATAL_ERROR
"Please point ELASTIX_USE_FILE to your systems UseElastix.cmake file."
)
endif
()
else
()
include
(
ExternalElastix
)
endif
()
endif
()
# ---------------------------------------------------------------------
...
...
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