<commit_before># create the vtkITK executable
ADD_EXECUTABLE(vtkITK tkAppInit)

LINK_LIBRARIES (
  vtkImagingTCL
  vtkGraphicsTCL
  vtkIOTCL
  vtkFilteringTCL 
  vtkCommonTCL  
  vtkIO
  vtkjpeg
  vtkpng
  vtkzlib
  vtktiff
  vtkGraphics
  vtkImaging
  vtkFiltering 
  vtkCommon 
)

#  vtktiff

IF (TCL_LIBRARY)
  LINK_LIBRARIES (${TCL_LIBRARY})
ELSE (TCL_LIBRARY)
  MESSAGE("VTK_WRAP_TCL is ON, but the Tcl library was not found.  Please set TCL_LIBRARY." "Error")
ENDIF (TCL_LIBRARY)


IF (VTK_USE_RENDERING)
  # add in opengl
  IF (WIN32)
    LINK_LIBRARIES ( ${OPENGL_LIBRARY} )
  ELSE (WIN32)
    IF (OPENGL_LIBRARY)
      LINK_LIBRARIES (${OPENGL_LIBRARY})
    ENDIF (OPENGL_LIBRARY)
  ENDIF (WIN32)
  IF (VTK_MANGLE_MESA)
    LINK_LIBRARIES( ${MESA_LIBRARY})
    IF ( MESA_OS_LIBRARY )
      LINK_LIBRARIES(${MESA_OS_LIBRARY})
    ENDIF ( MESA_OS_LIBRARY )
  ELSE (VTK_MANGLE_MESA)
    IF (MESA_OS_LIBRARY AND VTK_OPENGL_HAS_OSMESA)
      LINK_LIBRARIES(${MESA_OS_LIBRARY})
    ENDIF (MESA_OS_LIBRARY AND VTK_OPENGL_HAS_OSMESA)
  ENDIF (VTK_MANGLE_MESA)

  # add in the Tk values if found
  IF (TK_INCLUDE_PATH)
    INCLUDE_DIRECTORIES(${TK_INCLUDE_PATH})
  ENDIF (TK_INCLUDE_PATH)
  IF (TK_XLIB_PATH)
    INCLUDE_DIRECTORIES(${TK_XLIB_PATH})
  ENDIF (TK_XLIB_PATH)
  IF (TK_LIBRARY)
    LINK_LIBRARIES (${TK_LIBRARY})
  ELSE (TK_LIBRARY)
    MESSAGE("VTK_WRAP_TCL and VTK_USE_RENDERING are ON, but the Tk library was not found.  Please set TK_LIBRARY." "Error")
  ENDIF (TK_LIBRARY)

  # add in xwindows stuff
  IF (CMAKE_HAS_X)
    LINK_LIBRARIES(-lXt)
    LINK_LIBRARIES(${CMAKE_X_LIBS})
    ADD_DEFINITIONS(${CMAKE_X_CFLAGS})
  ENDIF (CMAKE_HAS_X)

  LINK_LIBRARIES(vtkRenderingTCL vtkRendering)
ENDIF (VTK_USE_RENDERING)

IF (VTK_USE_PATENTED)
  LINK_LIBRARIES(vtkPatentedTCL vtkPatented)
ENDIF (VTK_USE_PATENTED)

IF (VTK_USE_HYBRID)
  LINK_LIBRARIES(vtkHybridTCL vtkHybrid)
  IF (WIN32)
    IF (VTK_USE_VIDEO_FOR_WINDOWS)
      LINK_LIBRARIES (vfw32)
    ENDIF (VTK_USE_VIDEO_FOR_WINDOWS)
    IF (VTK_USE_MATROX_IMAGING)
      LINK_LIBRARIES (${MIL_LIBRARY})
    ENDIF (VTK_USE_MATROX_IMAGING)
  ENDIF (WIN32)
ENDIF (VTK_USE_HYBRID)

IF (VTK_USE_PARALLEL)
  LINK_LIBRARIES(vtkParallelTCL vtkParallel)

  IF (WIN32)
    LINK_LIBRARIES( wsock32 )
  ENDIF (WIN32)

  IF (VTK_USE_MPI)
    INCLUDE (${CMAKE_ROOT}/Modules/FindMPI.cmake)
    IF (MPI_LIBRARY)
      LINK_LIBRARIES (${MPI_LIBRARY})
    ENDIF (MPI_LIBRARY)
  ENDIF (VTK_USE_MPI)
ENDIF (VTK_USE_PARALLEL)

LINK_LIBRARIES(vtkVTKITKCommonTCL vtkVTKITKCommon)

#
# link in the PNG library if it was found
#
TARGET_LINK_LIBRARIES(vtkITK vtkpng vtkzlib vtkjpeg vtktiff)

INSTALL_TARGETS(/bin vtkITK)<commit_msg>ENH: needs itkNummerics library.<commit_after># create the vtkITK executable
ADD_EXECUTABLE(vtkITK tkAppInit)

LINK_LIBRARIES (
  vtkImagingTCL
  vtkGraphicsTCL
  vtkIOTCL
  vtkFilteringTCL 
  vtkCommonTCL  
  vtkIO
  vtkjpeg
  vtkpng
  vtkzlib
  vtktiff
  vtkGraphics
  vtkImaging
  vtkFiltering 
  vtkCommon 
)

#  vtktiff

IF (TCL_LIBRARY)
  LINK_LIBRARIES (${TCL_LIBRARY})
ELSE (TCL_LIBRARY)
  MESSAGE("VTK_WRAP_TCL is ON, but the Tcl library was not found.  Please set TCL_LIBRARY." "Error")
ENDIF (TCL_LIBRARY)


IF (VTK_USE_RENDERING)
  # add in opengl
  IF (WIN32)
    LINK_LIBRARIES ( ${OPENGL_LIBRARY} )
  ELSE (WIN32)
    IF (OPENGL_LIBRARY)
      LINK_LIBRARIES (${OPENGL_LIBRARY})
    ENDIF (OPENGL_LIBRARY)
  ENDIF (WIN32)
  IF (VTK_MANGLE_MESA)
    LINK_LIBRARIES( ${MESA_LIBRARY})
    IF ( MESA_OS_LIBRARY )
      LINK_LIBRARIES(${MESA_OS_LIBRARY})
    ENDIF ( MESA_OS_LIBRARY )
  ELSE (VTK_MANGLE_MESA)
    IF (MESA_OS_LIBRARY AND VTK_OPENGL_HAS_OSMESA)
      LINK_LIBRARIES(${MESA_OS_LIBRARY})
    ENDIF (MESA_OS_LIBRARY AND VTK_OPENGL_HAS_OSMESA)
  ENDIF (VTK_MANGLE_MESA)

  # add in the Tk values if found
  IF (TK_INCLUDE_PATH)
    INCLUDE_DIRECTORIES(${TK_INCLUDE_PATH})
  ENDIF (TK_INCLUDE_PATH)
  IF (TK_XLIB_PATH)
    INCLUDE_DIRECTORIES(${TK_XLIB_PATH})
  ENDIF (TK_XLIB_PATH)
  IF (TK_LIBRARY)
    LINK_LIBRARIES (${TK_LIBRARY})
  ELSE (TK_LIBRARY)
    MESSAGE("VTK_WRAP_TCL and VTK_USE_RENDERING are ON, but the Tk library was not found.  Please set TK_LIBRARY." "Error")
  ENDIF (TK_LIBRARY)

  # add in xwindows stuff
  IF (CMAKE_HAS_X)
    LINK_LIBRARIES(-lXt)
    LINK_LIBRARIES(${CMAKE_X_LIBS})
    ADD_DEFINITIONS(${CMAKE_X_CFLAGS})
  ENDIF (CMAKE_HAS_X)

  LINK_LIBRARIES(vtkRenderingTCL vtkRendering)
ENDIF (VTK_USE_RENDERING)

IF (VTK_USE_PATENTED)
  LINK_LIBRARIES(vtkPatentedTCL vtkPatented)
ENDIF (VTK_USE_PATENTED)

IF (VTK_USE_HYBRID)
  LINK_LIBRARIES(vtkHybridTCL vtkHybrid)
  IF (WIN32)
    IF (VTK_USE_VIDEO_FOR_WINDOWS)
      LINK_LIBRARIES (vfw32)
    ENDIF (VTK_USE_VIDEO_FOR_WINDOWS)
    IF (VTK_USE_MATROX_IMAGING)
      LINK_LIBRARIES (${MIL_LIBRARY})
    ENDIF (VTK_USE_MATROX_IMAGING)
  ENDIF (WIN32)
ENDIF (VTK_USE_HYBRID)

IF (VTK_USE_PARALLEL)
  LINK_LIBRARIES(vtkParallelTCL vtkParallel)

  IF (WIN32)
    LINK_LIBRARIES( wsock32 )
  ENDIF (WIN32)

  IF (VTK_USE_MPI)
    INCLUDE (${CMAKE_ROOT}/Modules/FindMPI.cmake)
    IF (MPI_LIBRARY)
      LINK_LIBRARIES (${MPI_LIBRARY})
    ENDIF (MPI_LIBRARY)
  ENDIF (VTK_USE_MPI)
ENDIF (VTK_USE_PARALLEL)

LINK_LIBRARIES(vtkVTKITKCommonTCL vtkVTKITKCommon itkNumerics)

#
# link in the PNG library if it was found
#
TARGET_LINK_LIBRARIES(vtkITK vtkpng vtkzlib vtkjpeg vtktiff)

INSTALL_TARGETS(/bin vtkITK)
{'fraction_non_alphanumeric': 0.08062418725617686, 'fraction_numerical': 0.0066877206018948546, 'mean_word_length': 4.620041753653445, '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': '3610464', 'n_tokens_mistral': 2695, 'n_tokens_neox': 2444, 'n_words': 427}