<commit_before>cmake_minimum_required(VERSION 3.0.2)

# project name
project(tests)

find_package(Threads)

set(CMAKE_LIBRARY_PATH, /usr/local/lib)
set(LIBS fdcpp)
set(TARGETS
    epoll_test
    eventfd_test
    socket_test
    easy_timer_test
    timerfd_test
    signalfd_test
    easy_tcp_socket_test
    easy_unix_socket_test
    easy_buffered_socket_test
    easy_mmap_test
    memfd_test
    easy_fdpass_test
    file_test
)

link_directories(${CMAKE_LIBRARY_PATH})

add_executable(epoll_test epoll_test.cpp)
target_link_libraries(epoll_test ${LIBS})

add_executable(eventfd_test eventfd_test.cpp)
target_link_libraries(eventfd_test ${LIBS})

add_executable(socket_test socket_test.cpp)
target_link_libraries(socket_test ${LIBS} ${CMAKE_THREAD_LIBS_INIT})

add_executable(easy_timer_test easy_timer_test.cpp)
target_link_libraries(easy_timer_test ${LIBS})

add_executable(timerfd_test timerfd_test.cpp)
target_link_libraries(timerfd_test ${LIBS})

add_executable(signalfd_test signalfd_test.cpp)
target_link_libraries(signalfd_test ${LIBS})

add_executable(easy_tcp_socket_test easy_tcp_socket_test.cpp)
target_link_libraries(easy_tcp_socket_test ${LIBS})

add_executable(easy_unix_socket_test easy_unix_socket_test.cpp)
target_link_libraries(easy_unix_socket_test ${LIBS})

add_executable(easy_buffered_socket_test easy_buffered_socket_test.cpp)
target_link_libraries(easy_buffered_socket_test ${LIBS} ${CMAKE_THREAD_LIBS_INIT})

add_executable(easy_mmap_test easy_mmap_test.cpp)
target_link_libraries(easy_mmap_test ${LIBS})

add_executable(memfd_test memfd_test.cpp)
target_link_libraries(memfd_test ${LIBS})

add_executable(easy_fdpass_test easy_fdpass_test.cpp)
target_link_libraries(easy_fdpass_test ${LIBS})

add_executable(file_test file_test.cpp)
target_link_libraries(file_test ${LIBS})

add_custom_target(tests DEPENDS ${TARGETS})
set_target_properties(tests ${TARGETS} PROPERTIES EXCLUDE_FROM_ALL 1)<commit_msg>CMakeLists.txt: fixed typo<commit_after>cmake_minimum_required(VERSION 3.0.2)

# project name
project(tests)

find_package(Threads)

set(CMAKE_LIBRARY_PATH /usr/local/lib)
set(LIBS fdcpp)
set(TARGETS
    epoll_test
    eventfd_test
    socket_test
    easy_timer_test
    timerfd_test
    signalfd_test
    easy_tcp_socket_test
    easy_unix_socket_test
    easy_buffered_socket_test
    easy_mmap_test
    memfd_test
    easy_fdpass_test
    file_test
)

link_directories(${CMAKE_LIBRARY_PATH})

add_executable(epoll_test epoll_test.cpp)
target_link_libraries(epoll_test ${LIBS})

add_executable(eventfd_test eventfd_test.cpp)
target_link_libraries(eventfd_test ${LIBS})

add_executable(socket_test socket_test.cpp)
target_link_libraries(socket_test ${LIBS} ${CMAKE_THREAD_LIBS_INIT})

add_executable(easy_timer_test easy_timer_test.cpp)
target_link_libraries(easy_timer_test ${LIBS})

add_executable(timerfd_test timerfd_test.cpp)
target_link_libraries(timerfd_test ${LIBS})

add_executable(signalfd_test signalfd_test.cpp)
target_link_libraries(signalfd_test ${LIBS})

add_executable(easy_tcp_socket_test easy_tcp_socket_test.cpp)
target_link_libraries(easy_tcp_socket_test ${LIBS})

add_executable(easy_unix_socket_test easy_unix_socket_test.cpp)
target_link_libraries(easy_unix_socket_test ${LIBS})

add_executable(easy_buffered_socket_test easy_buffered_socket_test.cpp)
target_link_libraries(easy_buffered_socket_test ${LIBS} ${CMAKE_THREAD_LIBS_INIT})

add_executable(easy_mmap_test easy_mmap_test.cpp)
target_link_libraries(easy_mmap_test ${LIBS})

add_executable(memfd_test memfd_test.cpp)
target_link_libraries(memfd_test ${LIBS})

add_executable(easy_fdpass_test easy_fdpass_test.cpp)
target_link_libraries(easy_fdpass_test ${LIBS})

add_executable(file_test file_test.cpp)
target_link_libraries(file_test ${LIBS})

add_custom_target(tests DEPENDS ${TARGETS})
set_target_properties(tests ${TARGETS} PROPERTIES EXCLUDE_FROM_ALL 1)
{'fraction_non_alphanumeric': 0.07622739018087855, 'fraction_numerical': 0.0020671834625322996, 'mean_word_length': 9.873595505617978, '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': '5750356', 'n_tokens_mistral': 1517, 'n_tokens_neox': 1466, 'n_words': 175}