<commit_before>cmake_minimum_required(VERSION 2.8)
project(time_series_data_reader)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin")

include_directories(include)

set(SOURCE_FILES
        main.cpp
        test/test.cpp
        src/file.cpp
        src/file_basics.cpp
        src/time_series_reader.cpp)

set(SOURCE_FILES_NO_MAIN
		test/test.cpp
        src/file.cpp
        src/file_basics.cpp
        src/time_series_reader.cpp)


add_executable(data_test ${SOURCE_FILES})
add_library(data ${SOURCE_FILES_NO_MAIN})

FIND_LIBRARY(GTEST_LIBRARY gtest /usr/local/lib)
TARGET_LINK_LIBRARIES(data_test ${GTEST_LIBRARY} pthread boost_thread boost_filesystem boost_system)
<commit_msg>change line with gtest library in CMAKE<commit_after>cmake_minimum_required(VERSION 2.8)
project(time_series_data_reader)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin")

include_directories(include)

set(SOURCE_FILES
        main.cpp
        test/test.cpp
        src/file.cpp
        src/file_basics.cpp
        src/time_series_reader.cpp)

set(SOURCE_FILES_NO_MAIN
		test/test.cpp
        src/file.cpp
        src/file_basics.cpp
        src/time_series_reader.cpp)


add_executable(data_test ${SOURCE_FILES})
add_library(data ${SOURCE_FILES_NO_MAIN})

TARGET_LINK_LIBRARIES(data_test gtest pthread boost_thread boost_filesystem boost_system)
{'fraction_non_alphanumeric': 0.09085614443797321, 'fraction_numerical': 0.004659289458357601, 'mean_word_length': 5.362962962962963, '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': '2586717', 'n_tokens_mistral': 664, 'n_tokens_neox': 617, 'n_words': 77}