mirror of https://github.com/oxen-io/oxen-mq.git
30 lines
549 B
CMake
30 lines
549 B
CMake
|
|
add_subdirectory(Catch2)
|
|
|
|
add_executable(tests
|
|
main.cpp
|
|
test_address.cpp
|
|
test_batch.cpp
|
|
test_connect.cpp
|
|
test_commands.cpp
|
|
test_failures.cpp
|
|
test_inject.cpp
|
|
test_pubsub.cpp
|
|
test_requests.cpp
|
|
test_socket_limit.cpp
|
|
test_tagged_threads.cpp
|
|
test_timer.cpp
|
|
)
|
|
|
|
find_package(Threads)
|
|
|
|
target_link_libraries(tests Catch2::Catch2 oxenmq Threads::Threads)
|
|
|
|
set_target_properties(tests PROPERTIES
|
|
CXX_STANDARD 17
|
|
CXX_STANDARD_REQUIRED ON
|
|
CXX_EXTENSIONS OFF
|
|
)
|
|
|
|
add_custom_target(check COMMAND tests)
|