mirror of https://github.com/vitalif/openscad
allow alternate image comparison tool diffpng based on Hector Yee's algorithm
Conflicts: tests/CMakeLists.txtmaster
parent
901caedd01
commit
94d11adeb2
|
@ -504,7 +504,12 @@ add_definitions(${HARFBUZZ_CFLAGS})
|
||||||
# Image comparison - expected test image vs actual generated image
|
# Image comparison - expected test image vs actual generated image
|
||||||
|
|
||||||
if (DIFFPNG)
|
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)
|
set(SKIP_IMAGEMAGICK 1)
|
||||||
|
message(STATUS "using diffpng for image comparison")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (SKIP_IMAGEMAGICK)
|
if (SKIP_IMAGEMAGICK)
|
||||||
|
|
Loading…
Reference in New Issue