<commit_before>cmake_minimum_required(VERSION 3.12)
project(first-fit-heap CXX)

add_library(${PROJECT_NAME} INTERFACE)
target_include_directories(${PROJECT_NAME} INTERFACE
  $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/include/>
  $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
  )
target_compile_features(${PROJECT_NAME} INTERFACE cxx_std_14)

enable_testing()

add_executable(${PROJECT_NAME}-test test/main.cpp)
add_test(NAME ${PROJECT_NAME}-test COMMAND ${PROJECT_NAME}-test)
target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME})
target_compile_options(${PROJECT_NAME}-test PRIVATE -Wall -Wextra -Werror)
target_compile_definitions(${PROJECT_NAME}-test PRIVATE HEAP_LINUX)

set(CPACK_PACKAGE_NAME "first-fit-heap")
set(CPACK_PACKAGE_VENDOR "<NAME>")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "C++ first-fit heap memory manager")
set(CPACK_PACKAGE_VERSION "1.0.0")
set(CPACK_PACKAGE_VERSION_MAJOR "1")
set(CPACK_PACKAGE_VERSION_MINOR "0")
set(CPACK_PACKAGE_VERSION_PATCH "0")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "first-fit-heap")
set(CPACK_PACKAGE_CONTACT "<NAME> <<EMAIL>>")

set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "amd64")
set(CPACK_SET_DESTDIR true)

set(PKG_CONFIG_REQUIRES)
set(PKG_CONFIG_LIBDIR "\${prefix}/lib")
set(PKG_CONFIG_INCLUDEDIR "\${prefix}/include")
set(PKG_CONFIG_LIBS)
set(PKG_CONFIG_CFLAGS "-I\${includedir}")

configure_file(
  "${CMAKE_CURRENT_SOURCE_DIR}/pkg-config.pc.cmake"
  "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc"
  )
<commit_msg>build: enable assertions during testing<commit_after>cmake_minimum_required(VERSION 3.12)
project(first-fit-heap CXX)

add_library(${PROJECT_NAME} INTERFACE)
target_include_directories(${PROJECT_NAME} INTERFACE
  $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/include/>
  $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
  )
target_compile_features(${PROJECT_NAME} INTERFACE cxx_std_14)

enable_testing()

add_executable(${PROJECT_NAME}-test test/main.cpp)
add_test(NAME ${PROJECT_NAME}-test COMMAND ${PROJECT_NAME}-test)
target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME})
target_compile_options(${PROJECT_NAME}-test PRIVATE -Wall -Wextra -Werror)
target_compile_definitions(${PROJECT_NAME}-test PRIVATE HEAP_LINUX HEAP_ENABLE_ASSERT)

set(CPACK_PACKAGE_NAME "first-fit-heap")
set(CPACK_PACKAGE_VENDOR "Thomas Prescher")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "C++ first-fit heap memory manager")
set(CPACK_PACKAGE_VERSION "1.0.0")
set(CPACK_PACKAGE_VERSION_MAJOR "1")
set(CPACK_PACKAGE_VERSION_MINOR "0")
set(CPACK_PACKAGE_VERSION_PATCH "0")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "first-fit-heap")
set(CPACK_PACKAGE_CONTACT "<NAME> <<EMAIL>>")

set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "amd64")
set(CPACK_SET_DESTDIR true)

set(PKG_CONFIG_REQUIRES)
set(PKG_CONFIG_LIBDIR "\${prefix}/lib")
set(PKG_CONFIG_INCLUDEDIR "\${prefix}/include")
set(PKG_CONFIG_LIBS)
set(PKG_CONFIG_CFLAGS "-I\${includedir}")

configure_file(
  "${CMAKE_CURRENT_SOURCE_DIR}/pkg-config.pc.cmake"
  "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc"
  )

{'fraction_non_alphanumeric': 0.13103217158176944, 'fraction_numerical': 0.00871313672922252, 'mean_word_length': 10.705882352941176, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '600483', 'n_tokens_mistral': 1190, 'n_tokens_neox': 1160, 'n_words': 142}