<commit_before>INCLUDE_DIRECTORIES(
${ITK_SOURCE_DIR}/Code/Common
${ITK_SOURCE_DIR}/Code/BasicFilters
${ITK_SOURCE_DIR}/Code/Algorithms
)

LINK_DIRECTORIES(
${ITK_BINARY_DIR}/Code/Common
${ITK_BINARY_DIR}/Code/BasicFilters
${ITK_BINARY_DIR}/Code/Algorithms
)

# Some examples need VTK.
INCLUDE (${ITK_SOURCE_DIR}/Utilities/ITKFindVTK.cmake)

# Add an option to build or not build the Watershed example
OPTION(BUILD_WATERSHED_REGISTRATION "Build the watershed segmentation" OFF)
IF(BUILD_WATERSHED_SEGMENTATION)
SUBDIRS(WatershedSegmentation)
ENDIF(BUILD_WATERSHED_SEGMENTATION)

# Add an option to build or not build the Image Registration example
# IF(HAS_METAIMAGE)
#  IF(HAS_FLTKIMAGEVIEWER)
#    SUBDIRS(ImageRegistration)
#  ENDIF(HAS_FLTKIMAGEVIEWER)
# ENDIF(HAS_METAIMAGE)

# Add an option to build or not build the Multiresolution Registration example
SUBDIRS(MultiResMIRegistration)

# Add an option to build or not build the Gaussian Filter GUI example
IF(HAS_METAIMAGE)
  IF(HAS_FLTKIMAGEVIEWER)
    SUBDIRS(GaussianFilter)
  ENDIF(HAS_FLTKIMAGEVIEWER)
ENDIF(HAS_METAIMAGE)

# Add an option to build or not build the Extractor of 2D curves
IF(HAS_METAIMAGE)
  IF(HAS_FLTKIMAGEVIEWER)
    SUBDIRS(Curves2DExtractor)
  ENDIF(HAS_FLTKIMAGEVIEWER)
ENDIF(HAS_METAIMAGE)


# Add an option to build or not build the Image Guided Intervention example
# IF(HAS_METAIMAGE)
#  IF(HAS_FLTKIMAGEVIEWER)
#    SUBDIRS(OperatingRoom)
#  ENDIF(HAS_FLTKIMAGEVIEWER)
# ENDIF(HAS_METAIMAGE)

# Add an option to build or not build the PrincipalAxes example
SUBDIRS(PrincipalAxes)

# Add an option to build or not build the Morphogenesis example
IF(HAS_METAIMAGE)
  IF(HAS_FLTKIMAGEVIEWER)
    SUBDIRS(Morphogenesis)
  ENDIF(HAS_FLTKIMAGEVIEWER)
ENDIF(HAS_METAIMAGE)

# Add an option to build or not build the MRIBiasCorrection example
IF(HAS_METAIMAGE)
  SUBDIRS(MRIBiasCorrection)
ENDIF(HAS_METAIMAGE)


# Add an option to build FEM examples
SUBDIRS(FEM)

# Add an option to build or not build the FuzzyConnectedness example
SUBDIRS(FuzzyConnectedness)

# Add an option to build or not build the ShapeDetection example
SUBDIRS(ShapeDetection)

# The MRI Registration example needs VTK
# IF (USE_VTK_FILE)
#  SUBDIRS(MRIRegistration)
# ENDIF (USE_VTK_FILE)

# Add an option to build or not build the TripleTKImageDisplay example.
# It needs VTK.
IF(HAS_METAIMAGE)
  IF(USE_VTK_FILE)
    SUBDIRS(TripleTKImageDisplay)
  ENDIF(USE_VTK_FILE)
ENDIF(HAS_METAIMAGE)

# Add an option to build or not build the
# GaussianMinimumErrorClassifier example
IF(HAS_METAIMAGE)
  SUBDIRS(GaussianMinimumErrorClassifier)
ENDIF(HAS_METAIMAGE)

# Add an option to build or not build the EllipsoidInteriorExteriorSpatialFunction example
SUBDIRS(EllipsoidInteriorExteriorSpatialFunction)

# Add an option to build or not build the SymmetricEllipsoidInteriorExteriorSpatialFunction example
SUBDIRS(SymmetricEllipsoidInteriorExteriorSpatialFunction)


# Add an option to build or not build the SurfaceGenerator example
IF(HAS_METAIMAGE)
  IF(HAS_FLTKIMAGEVIEWER)
    SUBDIRS(SurfaceGenerator)
  ENDIF(HAS_FLTKIMAGEVIEWER)
ENDIF(HAS_METAIMAGE)

# Add an option to build or not build the Gradient Gaussian Filter example
IF(HAS_METAIMAGE)
  IF(HAS_FLTKIMAGEVIEWER)
    SUBDIRS(GradientRecursiveGaussianFilter)
  ENDIF(HAS_FLTKIMAGEVIEWER)
ENDIF(HAS_METAIMAGE)


# Add an option to build or not build the Distance Map Filter example
IF(HAS_METAIMAGE)
  IF(HAS_FLTKIMAGEVIEWER)
    SUBDIRS(DistanceMapFilter)
  ENDIF(HAS_FLTKIMAGEVIEWER)
ENDIF(HAS_METAIMAGE)

# Add an option to build or not build the FEM - Mesh example
OPTION(BUILD_FEM_MESH_EXAMPLE "Build the FEM-Mesh example" OFF)
  IF(USE_VTK_FILE)
    SUBDIRS(FEMMesh)
  ENDIF(USE_VTK_FILE)
ENDIF(BUILD_FEM_MESH_EXAMPLE)


# Add an option to build the Tcl Wrap for the stl string class
IF( ITK_WRAP_TCL )
  IF( GCCXML )
    IF( CABLE )
      IF( TCL_TCLSH )
        SUBDIRS(TclWrappedSTLString)
      ENDIF( TCL_TCLSH )
    ENDIF( CABLE )
  ENDIF( GCCXML )
ENDIF( ITK_WRAP_TCL )


# Add an option to build the Tcl Wrap for the itk::Image class
IF( ITK_WRAP_TCL )
  IF( GCCXML )
    IF( CABLE )
      IF( TCL_TCLSH )
        SUBDIRS(TclWrappedImage)
      ENDIF( TCL_TCLSH )
    ENDIF( CABLE )
  ENDIF( GCCXML )<commit_msg>ENH: Add IF guards around the FEMMesh example for requiring FLTK<commit_after>INCLUDE_DIRECTORIES(
${ITK_SOURCE_DIR}/Code/Common
${ITK_SOURCE_DIR}/Code/BasicFilters
${ITK_SOURCE_DIR}/Code/Algorithms
)

LINK_DIRECTORIES(
${ITK_BINARY_DIR}/Code/Common
${ITK_BINARY_DIR}/Code/BasicFilters
${ITK_BINARY_DIR}/Code/Algorithms
)

# Some examples need VTK.
INCLUDE (${ITK_SOURCE_DIR}/Utilities/ITKFindVTK.cmake)

# Add an option to build or not build the Watershed example
OPTION(BUILD_WATERSHED_REGISTRATION "Build the watershed segmentation" OFF)
IF(BUILD_WATERSHED_SEGMENTATION)
SUBDIRS(WatershedSegmentation)
ENDIF(BUILD_WATERSHED_SEGMENTATION)

# Add an option to build or not build the Image Registration example
# IF(HAS_METAIMAGE)
#  IF(HAS_FLTKIMAGEVIEWER)
#    SUBDIRS(ImageRegistration)
#  ENDIF(HAS_FLTKIMAGEVIEWER)
# ENDIF(HAS_METAIMAGE)

# Add an option to build or not build the Multiresolution Registration example
SUBDIRS(MultiResMIRegistration)

# Add an option to build or not build the Gaussian Filter GUI example
IF(HAS_METAIMAGE)
  IF(HAS_FLTKIMAGEVIEWER)
    SUBDIRS(GaussianFilter)
  ENDIF(HAS_FLTKIMAGEVIEWER)
ENDIF(HAS_METAIMAGE)

# Add an option to build or not build the Extractor of 2D curves
IF(HAS_METAIMAGE)
  IF(HAS_FLTKIMAGEVIEWER)
    SUBDIRS(Curves2DExtractor)
  ENDIF(HAS_FLTKIMAGEVIEWER)
ENDIF(HAS_METAIMAGE)


# Add an option to build or not build the Image Guided Intervention example
# IF(HAS_METAIMAGE)
#  IF(HAS_FLTKIMAGEVIEWER)
#    SUBDIRS(OperatingRoom)
#  ENDIF(HAS_FLTKIMAGEVIEWER)
# ENDIF(HAS_METAIMAGE)

# Add an option to build or not build the PrincipalAxes example
SUBDIRS(PrincipalAxes)

# Add an option to build or not build the Morphogenesis example
IF(HAS_METAIMAGE)
  IF(HAS_FLTKIMAGEVIEWER)
    SUBDIRS(Morphogenesis)
  ENDIF(HAS_FLTKIMAGEVIEWER)
ENDIF(HAS_METAIMAGE)

# Add an option to build or not build the MRIBiasCorrection example
IF(HAS_METAIMAGE)
  SUBDIRS(MRIBiasCorrection)
ENDIF(HAS_METAIMAGE)


# Add an option to build FEM examples
SUBDIRS(FEM)

# Add an option to build or not build the FuzzyConnectedness example
SUBDIRS(FuzzyConnectedness)

# Add an option to build or not build the ShapeDetection example
SUBDIRS(ShapeDetection)

# The MRI Registration example needs VTK
# IF (USE_VTK_FILE)
#  SUBDIRS(MRIRegistration)
# ENDIF (USE_VTK_FILE)

# Add an option to build or not build the TripleTKImageDisplay example.
# It needs VTK.
IF(HAS_METAIMAGE)
  IF(USE_VTK_FILE)
    SUBDIRS(TripleTKImageDisplay)
  ENDIF(USE_VTK_FILE)
ENDIF(HAS_METAIMAGE)

# Add an option to build or not build the
# GaussianMinimumErrorClassifier example
IF(HAS_METAIMAGE)
  SUBDIRS(GaussianMinimumErrorClassifier)
ENDIF(HAS_METAIMAGE)

# Add an option to build or not build the EllipsoidInteriorExteriorSpatialFunction example
SUBDIRS(EllipsoidInteriorExteriorSpatialFunction)

# Add an option to build or not build the SymmetricEllipsoidInteriorExteriorSpatialFunction example
SUBDIRS(SymmetricEllipsoidInteriorExteriorSpatialFunction)


# Add an option to build or not build the SurfaceGenerator example
IF(HAS_METAIMAGE)
  IF(HAS_FLTKIMAGEVIEWER)
    SUBDIRS(SurfaceGenerator)
  ENDIF(HAS_FLTKIMAGEVIEWER)
ENDIF(HAS_METAIMAGE)

# Add an option to build or not build the Gradient Gaussian Filter example
IF(HAS_METAIMAGE)
  IF(HAS_FLTKIMAGEVIEWER)
    SUBDIRS(GradientRecursiveGaussianFilter)
  ENDIF(HAS_FLTKIMAGEVIEWER)
ENDIF(HAS_METAIMAGE)


# Add an option to build or not build the Distance Map Filter example
IF(HAS_METAIMAGE)
  IF(HAS_FLTKIMAGEVIEWER)
    SUBDIRS(DistanceMapFilter)
  ENDIF(HAS_FLTKIMAGEVIEWER)
ENDIF(HAS_METAIMAGE)

# Add an option to build or not build the FEM - Mesh example
OPTION(BUILD_FEM_MESH_EXAMPLE "Build the FEM-Mesh example" OFF)
  IF(HAS_FLTKIMAGEVIEWER)
    IF(USE_VTK_FILE)
      SUBDIRS(FEMMesh)
    ENDIF(USE_VTK_FILE)
  ENDIF(HAS_FLTKIMAGEVIEWER)
ENDIF(BUILD_FEM_MESH_EXAMPLE)


# Add an option to build the Tcl Wrap for the stl string class
IF( ITK_WRAP_TCL )
  IF( GCCXML )
    IF( CABLE )
      IF( TCL_TCLSH )
        SUBDIRS(TclWrappedSTLString)
      ENDIF( TCL_TCLSH )
    ENDIF( CABLE )
  ENDIF( GCCXML )
ENDIF( ITK_WRAP_TCL )


# Add an option to build the Tcl Wrap for the itk::Image class
IF( ITK_WRAP_TCL )
  IF( GCCXML )
    IF( CABLE )
      IF( TCL_TCLSH )
        SUBDIRS(TclWrappedImage)
      ENDIF( TCL_TCLSH )
    ENDIF( CABLE )
  ENDIF( GCCXML )
{'fraction_non_alphanumeric': 0.0631836164766116, 'fraction_numerical': 0.00046544100535257155, 'mean_word_length': 5.586206896551724, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1593533', 'n_tokens_mistral': 3325, 'n_tokens_neox': 3108, 'n_words': 794}