<commit_before>project(ITKMINC)
set(ITKMINC_THIRD_PARTY 1)

# For itk_minc2.h
set(ITKMINC_INCLUDE_DIRS ${CMAKE_CURRENT_BINARY_DIR}/src)
if(ITK_USE_SYSTEM_MINC)

  find_package(LIBMINC REQUIRED)

  set(ITKMINC_SYSTEM_INCLUDE_DIRS  ${LIBMINC_INCLUDE_DIRS} )
  set(ITKMINC_SYSTEM_LIBRARY_DIRS  ${LIBMINC_LIBRARY_DIRS} )
  set(ITKMINC_LIBRARIES            "${LIBMINC_LIBRARIES}"  )
  set(ITKMINC_NO_SRC                                    1  )
  # When this module is loaded by an app, load LIBMINC too
  set(ITKMINC_EXPORT_CODE_INSTALL "
set(LIBMINC_DIR \"${LIBMINC_DIR}\")
find_package(LIBMINC REQUIRED)
")
  set(ITKMINC_EXPORT_CODE_BUILD "
if(NOT ITK_BINARY_DIR)
  set(CMAKE_MODULE_PATH \"${CMAKE_CURRENT_SOURCE_DIR}/CMake\" \${CMAKE_MODULE_PATH})

  set(LIBMINC_DIR \"${LIBMINC_DIR}\")
  find_package(LIBMINC REQUIRED)
endif()
")

  set(ITKMINC_INCLUDE_DIRS
    ${ITKMINC_BINARY_DIR}
    ${LIBMINC_INCLUDE_DIRS}
    )

   set(ITKMINC_LIBRARY_DIRS
    ${LIBMINC_LIBRARY_DIRS}
    )

else()

  set(MINC_LIBRARY_PREFIX itk)
  set(MINC_LIBRARY_NAME  ${MINC_LIBRARY_PREFIX}minc2)
  set(ITKMINC_LIBRARIES "${MINC_LIBRARY_NAME}")

  set(ITKMINC_INCLUDE_DIRS
    ${ITKMINC_BINARY_DIR}
    ${ITKMINC_SOURCE_DIR}
    ${ITKMINC_SOURCE_DIR}/src/libminc
    ${ITKMINC_SOURCE_DIR}/src/libminc/libsrc2
    ${ITKMINC_SOURCE_DIR}/src/libminc/volume_io/Include
    )

  if(NOT ITK_USE_SYSTEM_HDF5)
    set(ITKMINC_INCLUDE_DIRS ${ITKMINC_INCLUDE_DIRS}
        "${ITKHDF5_SOURCE_DIR}/src/itkhdf5"
        "${ITKHDF5_BINARY_DIR}/src/itkhdf5"
        "${ITKHDF5_SOURCE_DIR}/src/itkhdf5/src"
        )
  endif()
endif()

configure_file(src/itk_minc2.h.in ${ITKMINC_BINARY_DIR}/itk_minc2.h)


itk_module_impl()<commit_msg>BUG: Install itk_minc2.h header.<commit_after>project(ITKMINC)
set(ITKMINC_THIRD_PARTY 1)

# For itk_minc2.h
set(ITKMINC_INCLUDE_DIRS ${CMAKE_CURRENT_BINARY_DIR}/src)
if(ITK_USE_SYSTEM_MINC)

  find_package(LIBMINC REQUIRED)

  set(ITKMINC_SYSTEM_INCLUDE_DIRS  ${LIBMINC_INCLUDE_DIRS} )
  set(ITKMINC_SYSTEM_LIBRARY_DIRS  ${LIBMINC_LIBRARY_DIRS} )
  set(ITKMINC_LIBRARIES            "${LIBMINC_LIBRARIES}"  )
  set(ITKMINC_NO_SRC                                    1  )
  # When this module is loaded by an app, load LIBMINC too
  set(ITKMINC_EXPORT_CODE_INSTALL "
set(LIBMINC_DIR \"${LIBMINC_DIR}\")
find_package(LIBMINC REQUIRED)
")
  set(ITKMINC_EXPORT_CODE_BUILD "
if(NOT ITK_BINARY_DIR)
  set(CMAKE_MODULE_PATH \"${CMAKE_CURRENT_SOURCE_DIR}/CMake\" \${CMAKE_MODULE_PATH})

  set(LIBMINC_DIR \"${LIBMINC_DIR}\")
  find_package(LIBMINC REQUIRED)
endif()
")

  set(ITKMINC_INCLUDE_DIRS
    ${ITKMINC_BINARY_DIR}
    ${LIBMINC_INCLUDE_DIRS}
    )

   set(ITKMINC_LIBRARY_DIRS
    ${LIBMINC_LIBRARY_DIRS}
    )

else()

  set(MINC_LIBRARY_PREFIX itk)
  set(MINC_LIBRARY_NAME  ${MINC_LIBRARY_PREFIX}minc2)
  set(ITKMINC_LIBRARIES "${MINC_LIBRARY_NAME}")

  set(ITKMINC_INCLUDE_DIRS
    ${ITKMINC_BINARY_DIR}
    ${ITKMINC_SOURCE_DIR}
    ${ITKMINC_SOURCE_DIR}/src/libminc
    ${ITKMINC_SOURCE_DIR}/src/libminc/libsrc2
    ${ITKMINC_SOURCE_DIR}/src/libminc/volume_io/Include
    )

  if(NOT ITK_USE_SYSTEM_HDF5)
    set(ITKMINC_INCLUDE_DIRS ${ITKMINC_INCLUDE_DIRS}
        "${ITKHDF5_SOURCE_DIR}/src/itkhdf5"
        "${ITKHDF5_BINARY_DIR}/src/itkhdf5"
        "${ITKHDF5_SOURCE_DIR}/src/itkhdf5/src"
        )
  endif()
endif()

configure_file(src/itk_minc2.h.in ${ITKMINC_BINARY_DIR}/itk_minc2.h)

itk_module_impl()

install(FILES ${ITKMINC_BINARY_DIR}/itk_minc2.h
  DESTINATION ${ITKMINC_INSTALL_INCLUDE_DIR}
  COMPONENT Development
  )
{'fraction_non_alphanumeric': 0.11007357102433503, 'fraction_numerical': 0.008488964346349746, 'mean_word_length': 4.656, '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': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '656415', 'n_tokens_mistral': 1660, 'n_tokens_neox': 1564, 'n_words': 158}