2020-02-06 23:10:26 +01:00
|
|
|
|
|
|
|
add_subdirectory(Catch2)
|
|
|
|
|
|
|
|
set(LMQ_TEST_SRC
|
|
|
|
main.cpp
|
|
|
|
test_batch.cpp
|
2020-02-12 00:08:19 +01:00
|
|
|
test_connect.cpp
|
2020-02-11 07:30:07 +01:00
|
|
|
test_commands.cpp
|
|
|
|
test_requests.cpp
|
2020-02-06 23:10:26 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(tests ${LMQ_TEST_SRC})
|
|
|
|
|
|
|
|
target_link_libraries(tests Catch2::Catch2 lokimq)
|
|
|
|
|
2020-02-12 01:39:13 +01:00
|
|
|
set_property(TARGET tests PROPERTY CXX_STANDARD 14)
|
|
|
|
set_property(TARGET tests PROPERTY CXX_STANDARD_REQUIRED ON)
|
|
|
|
|
2020-02-06 23:10:26 +01:00
|
|
|
add_custom_target(check COMMAND tests)
|