<commit_before>set(project_name googletest)

if(DSN_GIT_SOURCE STREQUAL "xiaomi")
    set(target_url "http://git.n.xiaomi.com/pegasus/googletest.git")
else()
    set(target_url "https://github.com/imzhenyu/googletest.git")
endif()

set(my_cmake_args "-Dgtest_force_shared_crt=OFF;")

if(WIN32)
    set(target_binaries gtest.lib gtest_main.lib)
else()
    set(target_binaries libgtest.a libgtest_main.a)
endif()

include(${PROJECT_SOURCE_DIR}/bin/dsn.ext.cmake)

set(GTEST_INCLUDE_DIR ${my_source_dir}/include PARENT_SCOPE)
set(GTEST_LIB_DIR ${my_binary_dir} PARENT_SCOPE)
<commit_msg>install gtest as an ext project<commit_after>set(project_name googletest)

if(DSN_GIT_SOURCE STREQUAL "xiaomi")
    set(target_url "http://git.n.xiaomi.com/pegasus/googletest.git")
else()
    set(target_url "https://github.com/imzhenyu/googletest.git")
endif()

set(my_cmake_args "-Dgtest_force_shared_crt=OFF;")

if(WIN32)
    set(target_binaries gtest.lib gtest_main.lib)
else()
    set(target_binaries libgtest.a libgtest_main.a)
endif()

include(${PROJECT_SOURCE_DIR}/bin/dsn.ext.cmake)

install(DIRECTORY ${my_source_dir}/include/gtest
    DESTINATION include/ext
    FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp" PATTERN "*.tcc" PATTERN "*.cpp"
)

set(GTEST_INCLUDE_DIR ${my_source_dir}/include PARENT_SCOPE)
set(GTEST_LIB_DIR ${my_binary_dir} PARENT_SCOPE)

{'fraction_non_alphanumeric': 0.133630289532294, 'fraction_numerical': 0.002969561989606533, 'mean_word_length': 6.326086956521739, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '481408', 'n_tokens_mistral': 582, 'n_tokens_neox': 547, 'n_words': 76}