<commit_before>cmake_minimum_required(VERSION 2.8)

project(clib)

set(PKG_NAME "credentials")
set(PKG_DESCRIPTION "Fast and portable C library which provides both high-level and low-level (cryptographic) credential operations")
set(PKG_AUTHOR "<NAME> <<EMAIL>>, <NAME> <<EMAIL>>")
set(PKG_VERSION_MAJOR "0")
set(PKG_VERSION_MINOR "1")
set(PKG_VERSION_PATCH "0")
set(PKG_VERSION_INFO "Release")

set(PKG_VERSION "${PKG_VERSION_MAJOR}.${PKG_VERSION_MINOR}.${PKG_VERSION_PATCH}")

set(CPACK_PACKAGE_NAME ${PKG_NAME})
set(CPACK_PACKAGE_VENDOR ${PKG_AUTHOR})
set(CPACK_PACKAGE_CONTACT ${PKG_AUTHOR})
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY ${PKG_DESCRIPTION})
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
set(CPACK_PACKAGE_VERSION_MAJOR ${PKG_VERSION_MAJOR})
set(CPACK_PACKAGE_VERSION_MINOR ${PKG_VERSION_MINOR})
set(CPACK_PACKAGE_VERSION_PATCH ${PKG_VERSION_PATCH})

set(CPACK_SOURCE_GENERATOR "TGZ;TBZ2;ZIP")
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${PKG_NAME}-${PKG_VERSION}")
set(CPACK_SOURCE_IGNORE_FILES "/build/;~$;${CPACK_SOURCE_IGNORE_FILES}")

set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6, libgmp10")
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE ${ARCH})
set(CPACK_DEBIAN_PACKAGE_SECTION  "libs")

set(CPACK_RPM_PACKAGE_LICENSE "CC0-1.0")
set(CPACK_RPM_PACKAGE_REQUIRES "gmp")
include(CPack)

add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
add_custom_target(deb COMMAND ${CMAKE_CPACK_COMMAND} -G DEB)
add_custom_target(rpm COMMAND ${CMAKE_CPACK_COMMAND} -G RPM)

add_subdirectory(data)
add_subdirectory(src)
add_subdirectory(test)<commit_msg>Make some builds optional<commit_after>cmake_minimum_required(VERSION 2.8)

project(clib)

set(PKG_NAME "credentials")
set(PKG_DESCRIPTION "Fast and portable C library which provides both high-level and low-level (cryptographic) credential operations")
set(PKG_AUTHOR "<NAME> <<EMAIL>>, <NAME> <<EMAIL>>")
set(PKG_VERSION_MAJOR "0")
set(PKG_VERSION_MINOR "1")
set(PKG_VERSION_PATCH "0")
set(PKG_VERSION_INFO "Release")

set(PKG_VERSION "${PKG_VERSION_MAJOR}.${PKG_VERSION_MINOR}.${PKG_VERSION_PATCH}")

set(CPACK_PACKAGE_NAME ${PKG_NAME})
set(CPACK_PACKAGE_VENDOR ${PKG_AUTHOR})
set(CPACK_PACKAGE_CONTACT ${PKG_AUTHOR})
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY ${PKG_DESCRIPTION})
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
set(CPACK_PACKAGE_VERSION_MAJOR ${PKG_VERSION_MAJOR})
set(CPACK_PACKAGE_VERSION_MINOR ${PKG_VERSION_MINOR})
set(CPACK_PACKAGE_VERSION_PATCH ${PKG_VERSION_PATCH})

set(CPACK_SOURCE_GENERATOR "TGZ;TBZ2;ZIP")
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${PKG_NAME}-${PKG_VERSION}")
set(CPACK_SOURCE_IGNORE_FILES "/build/;~$;${CPACK_SOURCE_IGNORE_FILES}")

set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6, libgmp10")
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE ${ARCH})
set(CPACK_DEBIAN_PACKAGE_SECTION  "libs")

set(CPACK_RPM_PACKAGE_LICENSE "CC0-1.0")
set(CPACK_RPM_PACKAGE_REQUIRES "gmp")
include(CPack)

add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
add_custom_target(deb COMMAND ${CMAKE_CPACK_COMMAND} -G DEB)
add_custom_target(rpm COMMAND ${CMAKE_CPACK_COMMAND} -G RPM)

option(BUILD_LIBRARIES "Build the libraries" ON)
if(BUILD_LIBRARIES)
  add_subdirectory(data)
  add_subdirectory(src)
endif(BUILD_LIBRARIES)

option(BUILD_TESTS "Build the test applications" ON)
if(BUILD_TESTS)
  add_subdirectory(test)
endif(BUILD_TESTS)
{'fraction_non_alphanumeric': 0.11876621504756414, 'fraction_numerical': 0.006918420294032862, 'mean_word_length': 12.991935483870968, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '293498', 'n_tokens_mistral': 1439, 'n_tokens_neox': 1394, 'n_words': 193}