

# Set up code generation
include(${SimpleITK_SOURCE_DIR}/CMake/generate_filter_source.cmake)
generate_filter_source()

add_subdirectory( src )

# Add custom command that will delete java files which need to be rebuilt when changes
# are made to BasicFilters
if( WRAP_JAVA )
  add_custom_command(
    TARGET SimpleITKBasicFilters
    POST_BUILD
    COMMENT "Cleaning java build..."
    COMMAND ${CMAKE_COMMAND} -E remove -f ${SimpleITK_BINARY_DIR}/Wrapping/org/itk/simple/*.java
    COMMAND ${CMAKE_COMMAND} -E remove -f ${SimpleITK_BINARY_DIR}/Wrapping/build/org/itk/simple/*.class
  )
endif()





# Set up code generation
include(${SimpleITK_SOURCE_DIR}/CMake/generate_filter_source.cmake)
generate_filter_source()

add_subdirectory( src )



Remove unused code not run
BUG: Remove unused code not run

The code to remove java binary files has not been running. The correct
dependencies have been added to the SWIG process so this has not been
needed for a while now.

Change-Id: I922348f394abda0864b575c351a5834f697a0580
