1 2 3 4 5 6 7 8 9 10 11
SET(TESTS_FILES bmp_im2im bmp_null ) FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest ${GD_LIB}) add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name)