2017-12-29 20:43:29 +01:00
|
|
|
if (HB_HAVE_GLIB)
|
2018-01-01 08:47:51 +01:00
|
|
|
file (READ "${CMAKE_CURRENT_SOURCE_DIR}/Makefile.am" MAKEFILEAM)
|
|
|
|
extract_make_variable (hb_fuzzer_SOURCES ${MAKEFILEAM})
|
|
|
|
add_executable (hb-fuzzer ${hb_fuzzer_SOURCES})
|
2017-12-29 20:43:29 +01:00
|
|
|
target_link_libraries (hb-fuzzer harfbuzz)
|
2018-01-01 08:47:51 +01:00
|
|
|
add_test (NAME hb-fuzzer
|
|
|
|
COMMAND python run-fuzzer-tests.py $<TARGET_FILE:hb-fuzzer>
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
2017-12-29 20:43:29 +01:00
|
|
|
endif ()
|