if HAVE_LIBJPEG
libgd_test_programs += \
	jpeg/bug_github_18 \
	jpeg/jpeg_empty_file \
	jpeg/jpeg_im2im \
	jpeg/jpeg_null

if HAVE_LIBPNG
libgd_test_programs += \
	jpeg/jpeg_read \
	jpeg/jpeg_resolution
endif
endif

EXTRA_DIST += \
	jpeg/CMakeLists.txt \
	jpeg/conv_test.jpeg \
	jpeg/conv_test_exp.png \
	jpeg/empty.jpeg \
	jpeg/github_bug_18_exp.jpeg \
	jpeg/github_bug_18.png
