<commit_before>cmake_minimum_required(VERSION 2.8)

project(crown-tests)

link_directories(${CROWN_BINARY_DIR})

enable_testing()

add_executable(allocators allocators.cpp)
add_executable(containers containers.cpp)
add_executable(messages messages.cpp)
add_executable(compressors compressors.cpp)
add_executable(connections connections.cpp)
add_executable(strings strings.cpp)
add_executable(paths paths.cpp)
add_executable(script script.cpp)

target_link_libraries(allocators crown)
target_link_libraries(containers crown)
target_link_libraries(messages crown)
target_link_libraries(compressors crown)
target_link_libraries(connections crown)
target_link_libraries(strings crown)
target_link_libraries(paths crown)

link_directories(${CROWN_THIRD}/luajit/lib)
include_directories(${CROWN_THIRD}/luajit/include)
target_link_libraries(script crown lua m)

add_test(allocators-test ${EXECUTABLE_OUTPUT_PATH}/allocators)
add_test(containers-test containers)
add_test(messages-test messages)
add_test(compressors-test compressors)<commit_msg>Remove m library, fix: link luajit instead of lua<commit_after>cmake_minimum_required(VERSION 2.8)

project(crown-tests)

link_directories(${CROWN_BINARY_DIR})

enable_testing()

add_executable(allocators allocators.cpp)
add_executable(containers containers.cpp)
add_executable(messages messages.cpp)
add_executable(compressors compressors.cpp)
add_executable(connections connections.cpp)
add_executable(strings strings.cpp)
add_executable(paths paths.cpp)
add_executable(script script.cpp)

target_link_libraries(allocators crown)
target_link_libraries(containers crown)
target_link_libraries(messages crown)
target_link_libraries(compressors crown)
target_link_libraries(connections crown)
target_link_libraries(strings crown)
target_link_libraries(paths crown)

link_directories(${CROWN_THIRD}/luajit/lib)
include_directories(${CROWN_THIRD}/luajit/include)
target_link_libraries(script crown lua)

add_test(allocators-test ${EXECUTABLE_OUTPUT_PATH}/allocators)
add_test(containers-test containers)
add_test(messages-test messages)
add_test(compressors-test compressors)
{'fraction_non_alphanumeric': 0.08246445497630332, 'fraction_numerical': 0.0018957345971563982, 'mean_word_length': 12.532051282051283, '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': '2931525', 'n_tokens_mistral': 699, 'n_tokens_neox': 676, 'n_words': 104}