<commit_before>INCLUDE_DIRECTORIES(${DARIADB_STORAGE_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${DARIADB_NETWORK_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${GTEST_INCLUDE_DIR})

MESSAGE(STATUS "Unittests")

FILE(GLOB HDRS "*.h")
FILE(GLOB SRC "*.cpp")

add_executable(unittests ${HDRS} ${SRC})
TARGET_LINK_LIBRARIES(unittests ${DARIADB_STORAGE_LIBS} ${DARIADB_CLIENT_LIBS} dariadb-server gtest_main)
add_dependencies(unittests gtest_main )
add_test(unittests ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittests) 
set_target_properties(unittests PROPERTIES FOLDER Tests)

if(MSVC)
 if (${CMAKE_BUILD_TYPE} STREQUAL "DEBUG")
   MESSAGE(STATUS "unittest debug build")
   SET_TARGET_PROPERTIES(unittests PROPERTIES COMPILE_FLAGS "/MTd")
 else()
   MESSAGE(STATUS "unittest release build")
   SET_TARGET_PROPERTIES(unittests PROPERTIES COMPILE_FLAGS "/MT")
 endif()
endif(msvc)<commit_msg>unittests: build params.<commit_after>INCLUDE_DIRECTORIES(${DARIADB_STORAGE_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${DARIADB_NETWORK_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${GTEST_INCLUDE_DIR})

MESSAGE(STATUS "Unittests")

FILE(GLOB HDRS "*.h")
FILE(GLOB SRC "*.cpp")

add_executable(unittests ${HDRS} ${SRC})
TARGET_LINK_LIBRARIES(unittests ${DARIADB_STORAGE_LIBS} ${DARIADB_CLIENT_LIBS} dariadb-server gtest_main)
add_dependencies(unittests gtest_main )
add_test(unittests ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittests) 
set_target_properties(unittests PROPERTIES FOLDER Tests)
{'fraction_non_alphanumeric': 0.10994397759103641, 'fraction_numerical': 0.0, 'mean_word_length': 11.318965517241379, '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': '6579558', 'n_tokens_mistral': 592, 'n_tokens_neox': 553, 'n_words': 79}