1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
add_library(simdutf_tests_helpers STATIC
test.h
test.cpp
random_int.h
random_int.cpp
transcode_test_base.h
transcode_test_base.cpp
random_utf8.h
random_utf8.cpp
random_utf16.h
random_utf16.cpp
random_utf32.h
random_utf32.cpp)
if(SIMDUTF_FAST_TESTS)
target_compile_definitions(simdutf_tests_helpers PUBLIC SIMDUTF_TEST_LOOP_TRIALS=10)
else()
target_compile_definitions(simdutf_tests_helpers PUBLIC SIMDUTF_TEST_LOOP_TRIALS=1000)
endif()
target_include_directories(simdutf_tests_helpers PUBLIC ${SIMDUTF_TEST_INCLUDE_DIR})
target_link_libraries(simdutf_tests_helpers PUBLIC simdutf simdutf::tests::reference)
add_library(simdutf::tests::helpers ALIAS simdutf_tests_helpers)
|