<commit_before>cmake_minimum_required(VERSION 3.0)
cmake_policy(VERSION 3.0)

project("bureaucracy"
        LANGUAGES CXX
        VERSION 0.1.1)

include(CTest)

set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
set(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH})
include(CPack)

option(BUILD_TESTS "Build optional tests" ON)
option(BUILD_DOCS  "Build documenttaion" ON)

enable_testing()

set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD 14)

include_directories(include)

if(BUILD_TESTS)
    find_library(GTEST gtest)
    find_library(GTEST_MAIN gtest_main)
    message(STATUS "gtest location: ${GTEST}")
    message(STATUS "gtest_main location: ${GTEST_MAIN}")
    if(GTEST AND GTEST_MAIN)
        set(BUILD_TESTS ON)
    else()
        message(WARNING "Could not find gtest libraries; unit tests disabled")
    endif()
endif()

if(BUILD_TESTS)
    function(create_test name)
        add_executable(${name} ${ARGN})
        target_link_libraries(${name}
                                ${GTEST}
                                ${GTEST_MAIN}
                                bureaucracy
                             )
        add_test(${name} ${name})
    endfunction()
else()
    function(create_test name)
        #do nothing
    endfunction()
endif()

add_subdirectory(timer)
add_subdirectory(worker)

set(bureaucracy_srcs
        ${timer_srcs}
        ${worker_srcs}
   )<commit_msg>Fix check for gtest libraries<commit_after>cmake_minimum_required(VERSION 3.0)
cmake_policy(VERSION 3.0)

project("bureaucracy"
        LANGUAGES CXX
        VERSION 0.1.1)

include(CTest)

set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
set(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH})
include(CPack)

option(BUILD_TESTS "Build optional tests" ON)
option(BUILD_DOCS  "Build documenttaion" ON)

enable_testing()

set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD 14)

include_directories(include)

if(BUILD_TESTS)
    find_library(GTEST gtest)
    find_library(GTEST_MAIN gtest_main)
    message(STATUS "gtest location: ${GTEST}")
    message(STATUS "gtest_main location: ${GTEST_MAIN}")
    if(NOT GTEST OR NOT GTEST_MAIN)
        message(WARNING "Could not find gtest libraries; unit tests disabled")
        set(BUILD_TESTS OFF)
    endif()
endif()

if(BUILD_TESTS)
    function(create_test name)
        add_executable(${name} ${ARGN})
        target_link_libraries(${name}
                                ${GTEST}
                                ${GTEST_MAIN}
                                bureaucracy
                             )
        add_test(${name} ${name})
    endfunction()
else()
    function(create_test name)
        #do nothing
    endfunction()
endif()

add_subdirectory(timer)
add_subdirectory(worker)

set(bureaucracy_srcs
        ${timer_srcs}
        ${worker_srcs}
   )
{'fraction_non_alphanumeric': 0.09601037950048653, 'fraction_numerical': 0.005838469023678235, 'mean_word_length': 3.2952646239554317, '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': '3164303', 'n_tokens_mistral': 1068, 'n_tokens_neox': 1036, 'n_words': 181}