<commit_before>if (NOT BUILD_OSSIM_HDF5_SUPPORT)
  return()
endif (NOT BUILD_OSSIM_HDF5_SUPPORT)

set(LIB_NAME ossim_hdf5_plugin)
MESSAGE( "************** LIBRARY SETUP FOR ossim_hdf5_plugin******************")

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
# Include ossim cmake stuff:
include(OssimVersion)
include(OssimCommonVariables)
include(OssimUtilities)

SET(requiredLibs)

set(HDF5_USE_STATIC_LIBRARIES FALSE)

find_package(HDF5A)
IF(HDF5_FOUND)
    INCLUDE_DIRECTORIES( ${HDF5_INCLUDE_DIR} )
    SET(requiredLibs ${requiredLibs} ${HDF5_LIBRARIES} )
ELSE(HDF5_FOUND)
    MESSAGE(FATAL_ERROR "Could not find hdf5")
ENDIF(HDF5_FOUND)

FILE(GLOB OSSIMPLUGIN_SRCS *.cpp)
FILE(GLOB OSSIMPLUGIN_HEADERS *.h)

####
# OSSIMPLUGINSMAKINGDLL controls dll linkage on windows.  <commit_msg>Forgot to add HDF5 FOUND<commit_after>if (NOT BUILD_OSSIM_HDF5_SUPPORT)
  return()
endif (NOT BUILD_OSSIM_HDF5_SUPPORT)

set(LIB_NAME ossim_hdf5_plugin)
MESSAGE( "************** LIBRARY SETUP FOR ossim_hdf5_plugin******************")

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
# Include ossim cmake stuff:
include(OssimVersion)
include(OssimCommonVariables)
include(OssimUtilities)

SET(requiredLibs)

set(HDF5_USE_STATIC_LIBRARIES FALSE)

find_package(HDF5A)
IF(HDF5A_FOUND)
    INCLUDE_DIRECTORIES( ${HDF5_INCLUDE_DIR} )
    SET(requiredLibs ${requiredLibs} ${HDF5_LIBRARIES} )
ELSE(HDF5A_FOUND)
    MESSAGE(FATAL_ERROR "Could not find hdf5")
ENDIF(HDF5A_FOUND)

FILE(GLOB OSSIMPLUGIN_SRCS *.cpp)
FILE(GLOB OSSIMPLUGIN_HEADERS *.h)

####
# OSSIMPLUGINSMAKINGDLL controls dll linkage on windows.  
{'fraction_non_alphanumeric': 0.12907268170426064, 'fraction_numerical': 0.015664160401002505, 'mean_word_length': 8.449704142011834, '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': '6238497', 'n_tokens_mistral': 693, 'n_tokens_neox': 641, 'n_words': 106}