Browse files

COMP: When ITK_VERSION_MAJOR is 4 - Build BRAINSDemonWarp only if BUI…

…LD_TESTING is ON

* As mentioned within the comment, building this module should be done only
for testing purposes.

* May be an option named BUILD_EXPERIMENTAL_CODE (or a better name) could be
added to specifically enable this module when ITKv4 is selected. If not,
project like Slicer-ITKv4 may fail to build BRAINSTools or fail to
run the associated tests.
  • Loading branch information...
1 parent dec2561 commit c2ca2abdec533d0fec16d8409abcd126d321c19a @jcfr committed Oct 26, 2011
Showing with 11 additions and 6 deletions.
  1. +11 −6 BRAINSTools.cmake
View
17 BRAINSTools.cmake
@@ -81,14 +81,19 @@ if(ITK_VERSION_MAJOR GREATER 3)
BRAINSMultiModeSegment
BRAINSInitializedControlPoints
BRAINSTransformConvert
- # Not yet ready BRAINSCut
+ # BRAINSCut # Not yet ready
)
-else(ITK_VERSION_MAJOR GREATER 3)
-endif(ITK_VERSION_MAJOR GREATER 3)
-## HACK: Need to have it available just for testing puposes.
+ if(BUILD_TESTING)
+ list(APPEND brains_modulenames
+ BRAINSDemonWarp # HACK Only works with ITKv3. Enabled with ITKv4 for testing purposes.
+ # Note also we are moving to a new program.
+ )
+ endif()
+else()
list(APPEND brains_modulenames
- BRAINSDemonWarp # This is only working in ITKv3, ITKv4 does not work correctly, and we are moving to a new program.
- )
+ BRAINSDemonWarp
+ )
+endif()
#-----------------------------------------------------------------------------
# Add module sub-directory if USE_<MODULENAME> is both defined and true

0 comments on commit c2ca2ab

Please sign in to comment.