From 6aae0077453d69fde49d423ce01d44b51dc568a2 Mon Sep 17 00:00:00 2001 From: DRC Date: Tue, 15 Nov 2016 08:37:04 -0600 Subject: [PATCH] CMake build system: Fix the "testclean" target Regression caused by f9134384b728d8943f252b27464d83c4b7b2d159 This commit also makes the "testclean" target clean up the 4:1:1 test images. This was implemented in the autotools build system in 1f3635c4969f2319a01c9fe561958815b733227f but was left out of the CMake build system due to an oversight. --- CMakeLists.txt | 2 +- cmakescripts/testclean.cmake | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c7739c7..48a74bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -866,7 +866,7 @@ foreach(libtype ${TEST_LIBTYPES}) endforeach() -add_custom_target(testclean COMMAND ${MD5CMP} -P +add_custom_target(testclean COMMAND ${CMAKE_COMMAND} -P ${CMAKE_SOURCE_DIR}/cmakescripts/testclean.cmake) diff --git a/cmakescripts/testclean.cmake b/cmakescripts/testclean.cmake index e357787..38bb03b 100644 --- a/cmakescripts/testclean.cmake +++ b/cmakescripts/testclean.cmake @@ -24,7 +24,12 @@ file(GLOB FILES *_440_*.png *_440_*.ppm *_440_*.jpg - *_440.yuv) + *_440.yuv + *_411_*.bmp + *_411_*.png + *_411_*.ppm + *_411_*.jpg + *_411.yuv) if(NOT FILES STREQUAL "") message(STATUS "Removing test files") -- 2.50.1