Michal Vasko | 99544ca | 2021-06-29 10:45:19 +0200 | [diff] [blame] | 1 | set(format_sources |
| 2 | ${format_sources} |
| 3 | ${CMAKE_CURRENT_SOURCE_DIR}/perf.c |
| 4 | PARENT_SCOPE) |
| 5 | |
| 6 | add_executable(ly_perf ${CMAKE_CURRENT_SOURCE_DIR}/perf.c $<TARGET_OBJECTS:yangobj>) |
| 7 | set_target_properties(ly_perf PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/tests") |
Jan Kundrát | 3b75bb6 | 2021-12-10 00:42:36 +0100 | [diff] [blame^] | 8 | target_link_libraries(ly_perf ${CMAKE_THREAD_LIBS_INIT} ${PCRE2_LIBRARIES} ${CMAKE_DL_LIBS}) |
| 9 | if (NOT WIN32) |
| 10 | target_link_libraries(ly_perf m) |
| 11 | endif() |
Michal Vasko | 99544ca | 2021-06-29 10:45:19 +0200 | [diff] [blame] | 12 | |
| 13 | add_test(NAME ly_perf_1000 COMMAND ly_perf 1000 10) |
| 14 | add_test(NAME ly_perf_100000 COMMAND ly_perf 100000 3) |