blob: b7f325cf7914e4079f3be54dda25e162009a2fdf [file] [log] [blame]
Michal Vasko99544ca2021-06-29 10:45:19 +02001set(format_sources
2 ${format_sources}
3 ${CMAKE_CURRENT_SOURCE_DIR}/perf.c
4 PARENT_SCOPE)
5
6add_executable(ly_perf ${CMAKE_CURRENT_SOURCE_DIR}/perf.c $<TARGET_OBJECTS:yangobj>)
7set_target_properties(ly_perf PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/tests")
8target_link_libraries(ly_perf ${CMAKE_THREAD_LIBS_INIT} ${PCRE2_LIBRARIES} ${CMAKE_DL_LIBS} m)
9
10add_test(NAME ly_perf_1000 COMMAND ly_perf 1000 10)
11add_test(NAME ly_perf_100000 COMMAND ly_perf 100000 3)