<commit_before>INCLUDE_DIRECTORIES(${${KITNAME}_INCLUDE_DIRS})

SET(ALL_FILES_CPP "")
SET(ALL_FILES_H "")
IF(FALSE)
FOREACH(core ${CORE_DIRECTORIES})
  SET(CPP_FILES "")
  SET(H_FILES "")
  INCLUDE(${core}/files.cmake)
  FOREACH(cpp_file ${CPP_FILES})
    SET(ALL_FILES_CPP ${ALL_FILES_CPP} ${core}/${cpp_file})
  ENDFOREACH(cpp_file)
  FOREACH(h_file ${H_FILES})
    SET(ALL_FILES_H ${ALL_FILES_H} ${core}/${h_file})
  ENDFOREACH(h_file)
  SET(ALL_FILES_CPP ${ALL_FILES_CPP} ${CPP_FILES_GENERATED})
  SET(CPP_FILES_GENERATED "")
ENDFOREACH(core)
ENDIF(FALSE)
FILE(GLOB_RECURSE ALL_FILES_CPP RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.c*)
ORGANIZE_SOURCES(${ALL_FILES_CPP} ${ALL_FILES_H})

FIND_PACKAGE(OpenGL)
IF(NOT OPENGL_FOUND)
  MESSAGE("GL is required for MITK rendering")
ENDIF(NOT OPENGL_FOUND )
INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${IPSEGMENTATION_INCLUDE_DIR} ${ANN_INCLUDE_DIR})
IF(CMAKE_COMPILER_IS_GNUCC)
  OPTION(MITK_USE_GCC_VISIBILITY "Use gcc's -fvisibility option to hide exported symbols" OFF) 
  IF(MITK_USE_GCC_VISIBILITY)
    ADD_DEFINITIONS("-fvisibility=hidden")
  ENDIF(MITK_USE_GCC_VISIBILITY)
ENDIF(CMAKE_COMPILER_IS_GNUCC)
ADD_LIBRARY(mitkCore${LIBPOSTFIX} SHARED ${ALL_FILES_CPP} ${ALL_FILES_H} ${CORRESPONDING_H_FILES} ${CORRESPONDING_TXX_FILES} ${GLOBBED_TXX_FILES} ${GLOBBED_DOX_FILES} ${GLOBBED_UI_FILES} ${TOOL_CPPS})

# install only if shared lib (for now)
INSTALL(TARGETS mitkCore${LIBPOSTFIX}
   RUNTIME DESTINATION bin
   LIBRARY DESTINATION lib
   ARCHIVE DESTINATION lib/static
)
TARGET_LINK_LIBRARIES(mitkCore ${LIBRARIES_FOR_${KITNAME}_CORE}  ${IPFUNC_LIBRARY} ipSegmentation ann)<commit_msg>FIX file extension for globbing<commit_after>INCLUDE_DIRECTORIES(${${KITNAME}_INCLUDE_DIRS})

SET(ALL_FILES_CPP "")
SET(ALL_FILES_H "")
IF(FALSE)
FOREACH(core ${CORE_DIRECTORIES})
  SET(CPP_FILES "")
  SET(H_FILES "")
  INCLUDE(${core}/files.cmake)
  FOREACH(cpp_file ${CPP_FILES})
    SET(ALL_FILES_CPP ${ALL_FILES_CPP} ${core}/${cpp_file})
  ENDFOREACH(cpp_file)
  FOREACH(h_file ${H_FILES})
    SET(ALL_FILES_H ${ALL_FILES_H} ${core}/${h_file})
  ENDFOREACH(h_file)
  SET(ALL_FILES_CPP ${ALL_FILES_CPP} ${CPP_FILES_GENERATED})
  SET(CPP_FILES_GENERATED "")
ENDFOREACH(core)
ENDIF(FALSE)
FILE(GLOB_RECURSE ALL_FILES_CPP RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.c *.cpp)
ORGANIZE_SOURCES(${ALL_FILES_CPP} ${ALL_FILES_H})

FIND_PACKAGE(OpenGL)
IF(NOT OPENGL_FOUND)
  MESSAGE("GL is required for MITK rendering")
ENDIF(NOT OPENGL_FOUND )
INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${IPSEGMENTATION_INCLUDE_DIR} ${ANN_INCLUDE_DIR})
IF(CMAKE_COMPILER_IS_GNUCC)
  OPTION(MITK_USE_GCC_VISIBILITY "Use gcc's -fvisibility option to hide exported symbols" OFF) 
  IF(MITK_USE_GCC_VISIBILITY)
    ADD_DEFINITIONS("-fvisibility=hidden")
  ENDIF(MITK_USE_GCC_VISIBILITY)
ENDIF(CMAKE_COMPILER_IS_GNUCC)
ADD_LIBRARY(mitkCore${LIBPOSTFIX} SHARED ${ALL_FILES_CPP} ${ALL_FILES_H} ${CORRESPONDING_H_FILES} ${CORRESPONDING_TXX_FILES} ${GLOBBED_TXX_FILES} ${GLOBBED_DOX_FILES} ${GLOBBED_UI_FILES} ${TOOL_CPPS})

# install only if shared lib (for now)
INSTALL(TARGETS mitkCore${LIBPOSTFIX}
   RUNTIME DESTINATION bin
   LIBRARY DESTINATION lib
   ARCHIVE DESTINATION lib/static
)
TARGET_LINK_LIBRARIES(mitkCore ${LIBRARIES_FOR_${KITNAME}_CORE}  ${IPFUNC_LIBRARY} ipSegmentation ann)
{'fraction_non_alphanumeric': 0.12196583757866347, 'fraction_numerical': 0.0, 'mean_word_length': 9.024024024024024, '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': '5653832', 'n_tokens_mistral': 1499, 'n_tokens_neox': 1312, 'n_words': 196}