<commit_before>cmake_minimum_required(VERSION 2.8)
project(ObscureMath CXX)

include_directories("lib")
add_library(omath "lib/U33.cpp")

add_executable(test_omath "test.cpp")
target_link_libraries(test_omath omath)

add_executable(profile_omath "profile.cpp")
target_link_libraries(profile_omath omath)
<commit_msg>Update CMakeLists to add optional test support<commit_after>cmake_minimum_required(VERSION 2.8)
project(ObscureMath CXX)

# Project Options
option(omath_enable_testing "Enable Unit Tests for OMath" OFF)

# Library Target
include_directories("lib")
add_library(omath "lib/U33.cpp")

# Testing
if (omath_enable_testing)

    # Enable testing
    enable_testing()

    # Add test target
    add_executable(test_u33 "test/test_u33.cpp")
    target_link_libraries(test_u33 omath)

    # Add the test case (only one for now)
    add_test(test_u33 test_u33)

    # Add profile target
    add_executable(profile_u33 "test/profile_u33.cpp")
    target_link_libraries(profile_u33 omath)

endif (omath_enable_testing)

{'fraction_non_alphanumeric': 0.08504398826979472, 'fraction_numerical': 0.02346041055718475, 'mean_word_length': 6.211267605633803, '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': '7268848', 'n_tokens_mistral': 379, 'n_tokens_neox': 358, 'n_words': 71}