Skip to content

Commit

Permalink
WIP: test a minimal ants build
Browse files Browse the repository at this point in the history
  • Loading branch information
stnava committed Feb 7, 2015
1 parent 7163380 commit c0132f7
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 31 deletions.
1 change: 1 addition & 0 deletions ANTS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ message(STATUS "Building ${PROJECT_NAME} version \"${${PROJECT_NAME}_VERSION}\""
find_package(ITK 4 REQUIRED)
include(${ITK_USE_FILE})


# Set up VTK
option(USE_VTK "Use VTK Libraries" OFF)
if(USE_VTK)
Expand Down
63 changes: 32 additions & 31 deletions Examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,33 +36,41 @@ endmacro()
#add_executable(${PROG_WITH_NO_FLAG} ${PROG_WITH_NO_FLAG}.cxx)
#target_link_libraries(${PROG_WITH_NO_FLAG} antsUtilities ${ITK_LIBRARIES})

set(BASE_ANTS_APPS
set(CORE_ANTS_APPS
antsAffineInitializer
ImageMath
SurfaceCurvature
SurfaceBasedSmoothing
CreateJacobianDeterminantImage
ThresholdImage
ResampleImage
sccan
N4BiasFieldCorrection
N3BiasFieldCorrection
KellyKapowski
antsRegistration
antsMotionCorrStats
antsMotionCorr
antsApplyTransforms
LabelGeometryMeasures
LabelClustersUniquely
Atropos
)

set(MORE_ANTS_APPS
ANTS
ANTSJacobian
PrintHeader
ResetDirection
# ResetDirection2
# BoykovGraphCutFilter
# GeneralLinearModel
ANTSUseLandmarkImagesToGetAffineTransform
ANTSUseLandmarkImagesToGetBSplineDisplacementField
ANTSUseDeformationFieldToGetAffineTransform
# FDR
antsAffineInitializer
# antsSimilarityInitializer
ImageMath
SurfaceCurvature
SurfaceBasedSmoothing
# test
# WarpImage
LaplacianThickness
SetOrigin
SetSpacing
SetDirectionByMatrix
# WarpFunctionalImage
ConvertScalarImageToRGB
CreateWarpedGridImage
CreateJacobianDeterminantImage
MeasureImageSimilarity
ConvertToJpg
ConvertImagePixelType
Expand All @@ -71,60 +79,44 @@ set(BASE_ANTS_APPS
AverageImages
AverageTensorImages
ImageSetStatistics
ThresholdImage
MultiplyImages
SmoothImage
ClusterImageStatistics
LabelClustersUniquely
# StudentsTestOnImages
LabelOverlapMeasures
LesionFilling
MeasureMinMaxMean
WarpImageMultiTransform
ComposeMultiTransform
StackSlices
MemoryTest
# ANTSOrientImage
PermuteFlipImageOrientationAxes
ImageCompare
ResampleImageBySpacing
# ResampleImageByOtherImage
CopyImageHeaderInformation
WarpTimeSeriesImageMultiTransform
ResampleImage
ExtractSliceFromImage
ExtractRegionFromImage
ExtractRegionFromImageByMask
LabelGeometryMeasures
PasteImageIntoImage
TileImages
CreateTiledMosaic
CreateImage
WarpTensorImageMultiTransform
ReorientTensorImage
RebaseTensorImage
N3BiasFieldCorrection
N4BiasFieldCorrection
KellySlater
KellyKapowski
CreateDTICohort
AverageAffineTransform
AverageAffineTransformNoRigid
antsAlignOrigin
antsRegistration
simpleSynRegistration
antsApplyTransforms
antsApplyTransformsToPoints
CompositeTransformUtil
antsMotionCorr
antsMotionCorrStats
antsMotionCorrDiffusionDirection
antsSliceRegularizedRegistration
sccan
CreateDisplacementField
ANTSIntegrateVectorField
ANTSIntegrateVelocityField
Atropos
ConvertTransformFile
compareTwoTransforms
TimeSCCAN
Expand All @@ -136,10 +128,19 @@ set(BASE_ANTS_APPS
antsTransformInfo
antsUtilitiesTesting
)
foreach(ANTS_APP ${BASE_ANTS_APPS})


foreach(ANTS_APP ${CORE_ANTS_APPS})
STANDARD_ANTS_BUILD(${ANTS_APP} "")
endforeach()

if (BUILD_ALL_ANTS_APPS)
foreach(ANTS_APP ${MORE_ANTS_APPS})
STANDARD_ANTS_BUILD(${ANTS_APP} "")
endforeach()
endif(BUILD_ALL_ANTS_APPS)


if(USE_VTK)
find_package(VTK 6.2 REQUIRED NO_MODULE)
find_package(VTK COMPONENTS
Expand Down
2 changes: 2 additions & 0 deletions SuperBuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ CMAKE_DEPENDENT_OPTION(

set(EXTERNAL_PROJECT_BUILD_TYPE "Release" CACHE STRING "Default build type for support libraries")

option(BUILD_ALL_ANTS_APPS "Build all ANTs apps" ON)

option(USE_SYSTEM_ITK "Build using an externally defined version of ITK" OFF)
option(USE_SYSTEM_SlicerExecutionModel "Build using an externally defined version of SlicerExecutionModel" OFF)

Expand Down
4 changes: 4 additions & 0 deletions SuperBuild/External_ITKv4.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ if(NOT DEFINED ${extProjName}_DIR AND NOT ${USE_SYSTEM_${extProjName}})
-DITK_FUTURE_LEGACY_REMOVE:=BOOL=ON
-DITKV3_COMPATIBILITY:BOOL=ON
-DITK_BUILD_DEFAULT_MODULES:BOOL=ON
# -DITK_MODULE_Core:BOOL=ON
# -DITK_MODULE_IO:BOOL=ON
# -DITK_MODULE_Filtering:BOOL=ON
# -DITK_MODULE_Registration:BOOL=ON
#-DITK_INSTALL_NO_DEVELOPMENT:BOOL=ON
-DKWSYS_USE_MD5:BOOL=ON # Required by SlicerExecutionModel
-DITK_WRAPPING:BOOL=OFF #${BUILD_SHARED_LIBS} ## HACK: QUICK CHANGE
Expand Down

0 comments on commit c0132f7

Please sign in to comment.