allow alternate image comparison tool diffpng based on Hector Yee's algorithm

Conflicts:
	tests/CMakeLists.txt
master
Don Bright 2014-06-07 09:52:39 -05:00 committed by Marius Kintel
parent 901caedd01
commit 94d11adeb2
1 changed files with 5 additions and 0 deletions

View File

@ -504,7 +504,12 @@ add_definitions(${HARFBUZZ_CFLAGS})
# Image comparison - expected test image vs actual generated image
if (DIFFPNG)
# How to set cflags to optimize the executable?
set(IMAGE_COMPARE_EXECUTABLE ${CMAKE_CURRENT_BINARY_DIR}/diffpng)
set(COMPARATOR "diffpng")
add_executable(diffpng diffpng.cpp ../src/lodepng.cpp)
set(SKIP_IMAGEMAGICK 1)
message(STATUS "using diffpng for image comparison")
endif()
if (SKIP_IMAGEMAGICK)