Skip to content

Commit

Permalink
ENH: Slicer requires special treatment.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjmjohnson committed Nov 14, 2012
1 parent 54995e8 commit 4dfc440
Show file tree
Hide file tree
Showing 21 changed files with 22 additions and 20 deletions.
2 changes: 1 addition & 1 deletion AutoWorkup/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
#-----------------------------------------------------------------------------
# Output directories.
#
if(BUILD_TESTING)
if(BUILD_TESTING AND NOT Slicer_BUILD_BRAINSTOOLS)
add_subdirectory(TestSuite)
endif()
2 changes: 1 addition & 1 deletion BRAINSABC/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###
add_subdirectory(brainseg)

if(BUILD_TESTING)
if(BUILD_TESTING AND NOT Slicer_BUILD_BRAINSTOOLS)
add_subdirectory(TestSuite)
endif()

2 changes: 1 addition & 1 deletion BRAINSCommonLib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ install(FILES ${TESTFILES_TO_INSTALL}

##HACK NEED BETTER TESTS add_directory( TestLargestForegroundFilledMaskImageFilter )
##HACK NEED BETTER TESTS add_directory( Test_FindCenterOfBrainFilter )
if(BUILD_TESTING)
if(BUILD_TESTING AND NOT Slicer_BUILD_BRAINSTOOLS)
add_subdirectory(TestSuite)
endif()

2 changes: 1 addition & 1 deletion BRAINSConstellationDetector/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if(BUILD_WITH_GUI OR BRAINS3_USE_QT OR BRAINSTools_USE_QT)
endif()

# Build test option
if(BUILD_TESTING)
if(BUILD_TESTING AND NOT Slicer_BUILD_BRAINSTOOLS)
add_subdirectory(TestSuite)
endif()

2 changes: 1 addition & 1 deletion BRAINSContinuousClass/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ foreach(prog ${ALL_PROGS_LIST})
endforeach()

### Add the Testing Subdirectory.
if(BUILD_TESTING)
if(BUILD_TESTING AND NOT Slicer_BUILD_BRAINSTOOLS)
add_subdirectory(TestSuite)
endif()

2 changes: 1 addition & 1 deletion BRAINSCut/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ if(1) ## HACK Regina many tests are failing and needs investigation,
## HACK Regina some tests are segmentation faulting
add_subdirectory(TestSuite)
endif()
if(BUILD_TESTING)
if(BUILD_TESTING AND NOT Slicer_BUILD_BRAINSTOOLS)
add_executable(TestHashKey TestHashKey.cxx)
target_link_libraries(TestHashKey BRAINSCutCOMMONLIB)
endif()
2 changes: 1 addition & 1 deletion BRAINSDemonWarp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ foreach(prog ${ALL_PROGS_LIST})
endforeach()

### Add the Testing Subdirectory.
if(BUILD_TESTING)
if(BUILD_TESTING AND NOT Slicer_BUILD_BRAINSTOOLS)
add_subdirectory(TestSuite)
endif()
2 changes: 1 addition & 1 deletion BRAINSFit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ foreach(prog ${ALL_PROGS_LIST})
StandardBRAINSBuildMacro(NAME ${prog} TARGET_LIBRARIES ${BRAINSFitLibraries})
endforeach()

if(BUILD_TESTING)
if(BUILD_TESTING AND NOT Slicer_BUILD_BRAINSTOOLS)
add_subdirectory(TestSuite)
endif()
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ StandardBRAINSBuildMacro(NAME BRAINSPosteriorToContinuousClass
TARGET_LIBRARIES ${ITK_LIBRARIES})
#CLI_XML_FILE BRAINSPosteriorToContinuousClass.xml)

if(BUILD_TESTING)
if(BUILD_TESTING AND NOT Slicer_BUILD_BRAINSTOOLS)
add_subdirectory(TestSuite)
endif()
2 changes: 1 addition & 1 deletion BRAINSLandmarkInitializer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ foreach(prog ${ALL_PROGS_LIST})
StandardBRAINSBuildMacro(NAME ${prog} TARGET_LIBRARIES BRAINSCommonLib )
endforeach()

#if(BUILD_TESTING)
#if(BUILD_TESTING AND NOT Slicer_BUILD_BRAINSTOOLS)
# add_subdirectory(TestSuite)
#endif()
2 changes: 1 addition & 1 deletion BRAINSMultiModeSegment/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ foreach(prog ${ALL_PROGS_LIST})
StandardBRAINSBuildMacro(NAME ${prog} TARGET_LIBRARIES BRAINSCommonLib )
endforeach()

if(BUILD_TESTING)
if(BUILD_TESTING AND NOT Slicer_BUILD_BRAINSTOOLS)
# add_subdirectory(TestSuite)
endif()
2 changes: 1 addition & 1 deletion BRAINSMush/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ foreach(prog ${ALL_PROGS_LIST})
endforeach()

if(0)
if(BUILD_TESTING)
if(BUILD_TESTING AND NOT Slicer_BUILD_BRAINSTOOLS)
add_subdirectory(TestSuite)
endif()
endif()
2 changes: 1 addition & 1 deletion BRAINSROIAuto/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ foreach(prog ${ALL_PROGS_LIST})
StandardBRAINSBuildMacro(NAME ${prog} TARGET_LIBRARIES BRAINSCommonLib )
endforeach()

if(BUILD_TESTING)
if(BUILD_TESTING AND NOT Slicer_BUILD_BRAINSTOOLS)
add_subdirectory(TestSuite)
endif()
2 changes: 1 addition & 1 deletion BRAINSResample/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ foreach(prog ${ALL_PROGS_LIST})
endforeach()

### Add the Testing Subdirectory.
if(BUILD_TESTING)
if(BUILD_TESTING AND NOT Slicer_BUILD_BRAINSTOOLS)
add_subdirectory(TestSuite)
endif()
2 changes: 1 addition & 1 deletion BRAINSSnapShotWriter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ foreach(prog ${ALL_PROGS_LIST})
StandardBRAINSBuildMacro(NAME ${prog} TARGET_LIBRARIES BRAINSCommonLib )
endforeach()

#if(BUILD_TESTING)
#if(BUILD_TESTING AND NOT Slicer_BUILD_BRAINSTOOLS)
# add_subdirectory(TestSuite)
#endif()
2 changes: 1 addition & 1 deletion BRAINSSurfaceTools/BRAINSSurfaceRegister/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ add_subdirectory( ProbabilityLabels )
add_subdirectory( ResampleQuadEdgeMesh )
add_subdirectory( QuadEdgeMeshSimilarity )

if(BUILD_TESTING)
if(BUILD_TESTING AND NOT Slicer_BUILD_BRAINSTOOLS)
add_subdirectory(TestSuite)
endif()
2 changes: 1 addition & 1 deletion BRAINSTransformConvert/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ foreach(prog ${ALL_PROGS_LIST})
StandardBRAINSBuildMacro(NAME ${prog} TARGET_LIBRARIES BRAINSCommonLib )
endforeach()

if(BUILD_TESTING)
if(BUILD_TESTING AND NOT Slicer_BUILD_BRAINSTOOLS)
add_subdirectory(TestSuite)
endif()
2 changes: 2 additions & 0 deletions Common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ option(USE_BRAINSCut "Build BRAINSCut"
option(USE_BRAINSLandmarkInitializer "Build BRAINSLandmarkInitializer" ON)
option(USE_ImageCalculator "Build ImageCalculator" ON)
option(USE_BRAINSSnapShotWriter "Build BRAINSSnapShotWriter" ON)
if( NOT USE_ANTS )
option(USE_ANTS "Build ANTS" ON)
endif()

## These are not yet ready for prime time.
option(USE_BRAINSContinuousClass "Build BRAINSContinuousClass " OFF)
Expand Down
2 changes: 1 addition & 1 deletion ICCDEF/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ foreach(prog ${ALL_PROGS_LIST})
StandardBRAINSBuildMacro(NAME ${prog} TARGET_LIBRARIES ${ICCDEFLibraries})
endforeach()

if(BUILD_TESTING)
if(BUILD_TESTING AND NOT Slicer_BUILD_BRAINSTOOLS)
add_subdirectory(TestSuite)
endif()
2 changes: 1 addition & 1 deletion ImageCalculator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ target_link_libraries(ImageCalculator ${ITK_LIBRARIES} )
add_executable(ImageGenerate ImageGenerate.cxx )
target_link_libraries(ImageGenerate ${ITK_LIBRARIES})

if(BUILD_TESTING)
if(BUILD_TESTING AND NOT Slicer_BUILD_BRAINSTOOLS)

add_executable(ImageCalculatorTests
ImageCalculatorTests.cxx ImageCalculatorUtils.cxx
Expand Down
2 changes: 1 addition & 1 deletion SuperBuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ endif()
#-----------------------------------------------------------------------------
# CTestCustom
#-----------------------------------------------------------------------------
if(BUILD_TESTING)
if(BUILD_TESTING AND NOT Slicer_BUILD_BRAINSTOOLS)
configure_file(
CMake/CTestCustom.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/CTestCustom.cmake
Expand Down

0 comments on commit 4dfc440

Please sign in to comment.