<commit_before>
add_executable(hdf5_test_target
        tests/hdf5_test.cpp
        source/general/nmspc_tensor_extra.h
        )

set_target_properties(hdf5_test_target PROPERTIES OUTPUT_NAME  hdf5_test)
target_include_directories(hdf5_test_target PUBLIC source)

################################################
###  Force cmake to find .a library suffixes ###
################################################
if(STATIC_BUILD)
    set(CUSTOM_SUFFIX ${CMAKE_STATIC_LIBRARY_SUFFIX})
    set(CMAKE_FIND_LIBRARY_SUFFIXES ${CUSTOM_SUFFIX} ${CMAKE_FIND_LIBRARY_SUFFIXES})
    target_link_libraries  (hdf5_test_target PRIVATE -static)                                             ### Static linkage
else()
    set(CUSTOM_SUFFIX ${CMAKE_SHARED_LIBRARY_SUFFIX})
    set(CMAKE_FIND_LIBRARY_SUFFIXES ${CUSTOM_SUFFIX} ${CMAKE_FIND_LIBRARY_SUFFIXES})
endif()


target_link_libraries(hdf5_test_target PRIVATE Eigen3::Eigen)
target_link_libraries(hdf5_test_target PRIVATE hdf5      )
target_link_libraries(hdf5_test_target PRIVATE spdlog::spdlog)
target_link_libraries(hdf5_test_target PRIVATE h5pp::h5pp)
target_link_libraries(hdf5_test_target PRIVATE -lstdc++fs)
target_link_libraries(hdf5_test_target PRIVATE -flto)

set_target_properties  (hdf5_test_target PROPERTIES CXX_STANDARD_REQUIRED 17)
target_compile_features(hdf5_test_target PRIVATE cxx_std_17)
target_compile_options (hdf5_test_target PRIVATE "${COMMON_OPTIONS}")                                 ### Common options
target_compile_options (hdf5_test_target PRIVATE "$<$<CONFIG:DEBUG>:${DEBUG_OPTIONS}>")               ### Debug build options
target_compile_options (hdf5_test_target PRIVATE "$<$<CONFIG:RELEASE>:${RELEASE_OPTIONS}>")           ### Release build options

add_test(NAME hdf5_test COMMAND hdf5_test_target)
#add_dependencies(hdf5_test_target Eigen3 hdf5::hdf5 hdf5::hdf5_hl hdf5::hdf5_cpp hdf5::hdf5_hl_cpp)
add_dependencies(hdf5_test_target Eigen3::Eigen hdf5 spdlog::spdlog  h5pp::h5pp)<commit_msg>Finishing touches before sim<commit_after>
add_executable(hdf5_test_target
        tests/hdf5_test.cpp
        source/general/nmspc_tensor_extra.h
        )

set_target_properties(hdf5_test_target PROPERTIES OUTPUT_NAME  hdf5_test)
target_include_directories(hdf5_test_target PUBLIC source)

################################################
###  Force cmake to find .a library suffixes ###
################################################
if(STATIC_BUILD)
    set(CUSTOM_SUFFIX ${CMAKE_STATIC_LIBRARY_SUFFIX})
    set(CMAKE_FIND_LIBRARY_SUFFIXES ${CUSTOM_SUFFIX} ${CMAKE_FIND_LIBRARY_SUFFIXES})
    target_link_libraries  (hdf5_test_target PRIVATE -static)                                             ### Static linkage
else()
    set(CUSTOM_SUFFIX ${CMAKE_SHARED_LIBRARY_SUFFIX})
    set(CMAKE_FIND_LIBRARY_SUFFIXES ${CUSTOM_SUFFIX} ${CMAKE_FIND_LIBRARY_SUFFIXES})
endif()


target_link_libraries(hdf5_test_target PRIVATE Eigen3::Eigen)
target_link_libraries(hdf5_test_target PRIVATE hdf5::hdf5   )
target_link_libraries(hdf5_test_target PRIVATE spdlog::spdlog)
target_link_libraries(hdf5_test_target PRIVATE h5pp::h5pp)
target_link_libraries(hdf5_test_target PRIVATE -lstdc++fs)
target_link_libraries(hdf5_test_target PRIVATE -flto)

set_target_properties  (hdf5_test_target PROPERTIES CXX_STANDARD_REQUIRED 17)
target_compile_features(hdf5_test_target PRIVATE cxx_std_17)
target_compile_options (hdf5_test_target PRIVATE "${COMMON_OPTIONS}")                                 ### Common options
target_compile_options (hdf5_test_target PRIVATE "$<$<CONFIG:DEBUG>:${DEBUG_OPTIONS}>")               ### Debug build options
target_compile_options (hdf5_test_target PRIVATE "$<$<CONFIG:RELEASE>:${RELEASE_OPTIONS}>")           ### Release build options

add_test(NAME hdf5_test COMMAND hdf5_test_target)
#add_dependencies(hdf5_test_target Eigen3 hdf5::hdf5 hdf5::hdf5_hl hdf5::hdf5_cpp hdf5::hdf5_hl_cpp)
add_dependencies(hdf5_test_target Eigen3::Eigen hdf5::hdf5 spdlog::spdlog  h5pp::h5pp)
{'fraction_non_alphanumeric': 0.12651821862348178, 'fraction_numerical': 0.021761133603238867, 'mean_word_length': 6.1482820976491865, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6399494', 'n_tokens_mistral': 1483, 'n_tokens_neox': 1399, 'n_words': 198}