if ENABLE_GD_FORMATS
if HAVE_LIBZ
libgd_test_programs += \
	gd2/bug_289 \
	gd2/bug00209 \
	gd2/bug00309 \
	gd2/bug00354 \
	gd2/bug00383 \
	gd2/createimagefromgd2part \
	gd2/createimagefromgd2partptr \
	gd2/gd2_empty_file \
	gd2/php_bug_72339 \
	gd2/gd2_null \
	gd2/gd2_read_corrupt \
	gd2/too_few_image_data \
	gd2/gd2_im2im

if HAVE_LIBPNG
libgd_test_programs += \
	gd2/gd2_read
endif
endif
endif

EXTRA_DIST += \
	gd2/CMakeLists.txt \
	gd2/bug00209.gd2 \
	gd2/bug00354a.gd2 \
	gd2/bug00354b.gd2 \
	gd2/bug00383.gd2 \
	gd2/conv_gd2_exp.gd2 \
	gd2/conv_test.gd2 \
	gd2/conv_test_exp.png \
	gd2/empty.gd2 \
	gd2/invalid_header.gd2 \
	gd2/invalid_neg_size.gd2 \
	gd2/too_few_image_data.gd2
