<commit_before>include_directories(
    ${Boost_INCLUDE_DIRS} ${LUA_INCLUDE_DIR} ${CMAKE_SOURCE_DIR})

add_library(testmain
    "main.cpp" "test.hpp"
    # These tests consist only of compile time asserts and define no test_main
    # function:
    "test_has_get_pointer.cpp"
    "test_typetraits.cpp")
    
target_link_libraries(testmain ${LUA_LIBRARIES} luabind)

set_property(GLOBAL PROPERTY USE_FOLDERS ON)

set(TESTS
    "abstract_base"
    "adopt"
    "adopt_wrapper"
    "attributes"
    "automatic_smart_ptr"
    "back_reference"
    "builtin_converters"
    "class_info"
    "collapse_converter"
    "const"
    "construction"
    "create_in_thread"
    "def_from_base"
    "dynamic_type"
    "exceptions"
    "exception_handlers"
    "extend_class_in_lua"
    "free_functions"
    "held_type"
    "implicit_cast"
    "implicit_raw"
    "iterator"
    "lua_classes"
    "null_pointer"
    "object"
    "operators"
    "policies"
    "private_destructors"
    "properties"
    "scope"
    "separation"
    "set_instance_value"
    "shadow"
    "shared_ptr"
    "simple_class"
    "smart_ptr_attributes"
    "super_leak"
    "table"
    "tag_function"
    "unsigned_int"
    "user_defined_converter"
    "value_wrapper"
    "vector_of_object"
    "virtual_inheritance"
    "yield")

foreach(test ${TESTS})
    add_executable(test_${test} "test_${test}.cpp" "test.hpp")
    target_link_libraries(test_${test} testmain)
    set_property(TARGET test_${test} PROPERTY FOLDER "Tests")
    add_test(${test} test_${test})
endforeach(test)<commit_msg>Build: Do not add test.hpp to individual tests.<commit_after>include_directories(
    ${Boost_INCLUDE_DIRS} ${LUA_INCLUDE_DIR} ${CMAKE_SOURCE_DIR})

add_library(testmain
    "main.cpp" "test.hpp"
    # These tests consist only of compile time asserts and define no test_main
    # function:
    "test_has_get_pointer.cpp"
    "test_typetraits.cpp")
    
target_link_libraries(testmain ${LUA_LIBRARIES} luabind)

set_property(GLOBAL PROPERTY USE_FOLDERS ON)

set(TESTS
    "abstract_base"
    "adopt"
    "adopt_wrapper"
    "attributes"
    "automatic_smart_ptr"
    "back_reference"
    "builtin_converters"
    "class_info"
    "collapse_converter"
    "const"
    "construction"
    "create_in_thread"
    "def_from_base"
    "dynamic_type"
    "exceptions"
    "exception_handlers"
    "extend_class_in_lua"
    "free_functions"
    "held_type"
    "implicit_cast"
    "implicit_raw"
    "iterator"
    "lua_classes"
    "null_pointer"
    "object"
    "operators"
    "policies"
    "private_destructors"
    "properties"
    "scope"
    "separation"
    "set_instance_value"
    "shadow"
    "shared_ptr"
    "simple_class"
    "smart_ptr_attributes"
    "super_leak"
    "table"
    "tag_function"
    "unsigned_int"
    "user_defined_converter"
    "value_wrapper"
    "vector_of_object"
    "virtual_inheritance"
    "yield")

foreach(test ${TESTS})
    add_executable(test_${test} "test_${test}.cpp")
    target_link_libraries(test_${test} testmain)
    set_property(TARGET test_${test} PROPERTY FOLDER "Tests")
    add_test(${test} test_${test})
endforeach(test)
{'fraction_non_alphanumeric': 0.10951008645533142, 'fraction_numerical': 0.0, 'mean_word_length': 3.7333333333333334, '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': '5961684', 'n_tokens_mistral': 1152, 'n_tokens_neox': 1134, 'n_words': 185}