From d0b1bae8c5c70c5d06f3dcecc450a75e7f7cb5af Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 23 Jul 2024 11:41:28 +0200 Subject: Adding upstream version 3.1.0+dfsg. Signed-off-by: Daniel Baumann --- tests/perf/CMakeLists.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/perf/CMakeLists.txt (limited to 'tests/perf/CMakeLists.txt') diff --git a/tests/perf/CMakeLists.txt b/tests/perf/CMakeLists.txt new file mode 100644 index 0000000..ec1dfb5 --- /dev/null +++ b/tests/perf/CMakeLists.txt @@ -0,0 +1,14 @@ +set(format_sources + ${format_sources} + ${CMAKE_CURRENT_SOURCE_DIR}/perf.c + PARENT_SCOPE) + +add_executable(ly_perf ${CMAKE_CURRENT_SOURCE_DIR}/perf.c $) +set_target_properties(ly_perf PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/tests") +target_link_libraries(ly_perf ${CMAKE_THREAD_LIBS_INIT} ${PCRE2_LIBRARIES} ${CMAKE_DL_LIBS}) +if (NOT WIN32) + target_link_libraries(ly_perf m) +endif() + +add_test(NAME ly_perf_1000 COMMAND ly_perf 1000 10) +add_test(NAME ly_perf_100000 COMMAND ly_perf 100000 3) -- cgit v1.2.3