test all codecs. Adding forgotten file to search for freeimage
This commit is contained in:
parent
414b680e53
commit
eb1baa78fc
|
@ -0,0 +1,52 @@
|
||||||
|
#
|
||||||
|
# Try to find the FreeImage library and include path.
|
||||||
|
# Once done this will define
|
||||||
|
#
|
||||||
|
# FREEIMAGE_FOUND
|
||||||
|
# FREEIMAGE_INCLUDE_PATH
|
||||||
|
# FREEIMAGE_LIBRARY
|
||||||
|
#
|
||||||
|
|
||||||
|
IF (WIN32)
|
||||||
|
FIND_PATH( FREEIMAGE_INCLUDE_PATH FreeImage.h
|
||||||
|
${OPENJPEG_SOURCE_DIR}/libs/FreeImage
|
||||||
|
DOC "The directory where FreeImage.h resides")
|
||||||
|
FIND_LIBRARY( FREEIMAGE_LIBRARY
|
||||||
|
NAMES FreeImage freeimage freeimage.s
|
||||||
|
PATHS
|
||||||
|
${OPENJPEG_SOURCE_DIR}/libs/FreeImage
|
||||||
|
DOC "The FreeImage library")
|
||||||
|
ELSE (WIN32)
|
||||||
|
FIND_PATH( FREEIMAGE_INCLUDE_PATH FreeImage.h
|
||||||
|
/usr/include
|
||||||
|
/usr/local/include
|
||||||
|
/sw/include
|
||||||
|
/opt/local/include
|
||||||
|
DOC "The directory where FreeImage.h resides")
|
||||||
|
FIND_LIBRARY( FREEIMAGE_LIBRARY
|
||||||
|
NAMES FreeImage freeimage
|
||||||
|
PATHS
|
||||||
|
/usr/lib64
|
||||||
|
/usr/lib
|
||||||
|
/usr/local/lib64
|
||||||
|
/usr/local/lib
|
||||||
|
/sw/lib
|
||||||
|
/opt/local/lib
|
||||||
|
DOC "The FreeImage library")
|
||||||
|
ENDIF (WIN32)
|
||||||
|
|
||||||
|
SET(FREEIMAGE_LIBRARIES ${FREEIMAGE_LIBRARY})
|
||||||
|
|
||||||
|
IF (FREEIMAGE_INCLUDE_PATH AND FREEIMAGE_LIBRARY)
|
||||||
|
SET( FREEIMAGE_FOUND TRUE CACHE BOOL "Set to TRUE if GLEW is found, FALSE otherwise")
|
||||||
|
ELSE (FREEIMAGE_INCLUDE_PATH AND FREEIMAGE_LIBRARY)
|
||||||
|
SET( FREEIMAGE_FOUND FALSE CACHE BOOL "Set to TRUE if GLEW is found, FALSE otherwise")
|
||||||
|
ENDIF (FREEIMAGE_INCLUDE_PATH AND FREEIMAGE_LIBRARY)
|
||||||
|
|
||||||
|
MARK_AS_ADVANCED(
|
||||||
|
FREEIMAGE_FOUND
|
||||||
|
FREEIMAGE_LIBRARY
|
||||||
|
FREEIMAGE_LIBRARIES
|
||||||
|
FREEIMAGE_INCLUDE_PATH)
|
||||||
|
|
||||||
|
|
|
@ -61,19 +61,15 @@ FILE(GLOB_RECURSE OPENJPEG_DATA_IMAGES_GLOB
|
||||||
"${JPEG2000_CONFORMANCE_DATA_ROOT}/*.jp2"
|
"${JPEG2000_CONFORMANCE_DATA_ROOT}/*.jp2"
|
||||||
)
|
)
|
||||||
|
|
||||||
FOREACH(filename ${OPENJPEG_DATA_IMAGES_GLOB})
|
foreach(filename ${OPENJPEG_DATA_IMAGES_GLOB})
|
||||||
GET_FILENAME_COMPONENT(filename_temp ${filename} NAME)
|
get_filename_component(filename_temp ${filename} NAME)
|
||||||
# PPM
|
get_filename_component(filename_ext ${filename} EXT)
|
||||||
ADD_TEST(j2i-${filename_temp}-ppm ${EXECUTABLE_OUTPUT_PATH}/j2k_to_image -i ${filename} -o ${filename_temp}.ppm)
|
foreach(codec_type ppm pgx bmp tif raw tga)
|
||||||
# PGX
|
ADD_TEST(j2i-${filename_temp}-${codec_type} ${EXECUTABLE_OUTPUT_PATH}/j2k_to_image -i ${filename} -o ${filename_temp}.${codec_type})
|
||||||
ADD_TEST(j2i-${filename_temp}-pgx ${EXECUTABLE_OUTPUT_PATH}/j2k_to_image -i ${filename} -o ${filename_temp}.pgx)
|
ADD_TEST(i2j-${filename_temp}-${codec_type} ${EXECUTABLE_OUTPUT_PATH}/image_to_j2k -i ${filename_temp}.${codec_type} -o ${filename_temp}.${codec_type}${filename_ext})
|
||||||
# BMP
|
#if(UNIX)
|
||||||
ADD_TEST(j2i-${filename_temp}-bmp ${EXECUTABLE_OUTPUT_PATH}/j2k_to_image -i ${filename} -o ${filename_temp}.bmp)
|
# ADD_TEST(cmp-${filename_temp}-${codec_type} cmp ${filename} ${filename_temp}.${codec_type}${filename_ext})
|
||||||
# TIF
|
#endif(UNIX)
|
||||||
ADD_TEST(j2i-${filename_temp}-tif ${EXECUTABLE_OUTPUT_PATH}/j2k_to_image -i ${filename} -o ${filename_temp}.tif)
|
endforeach(codec_type)
|
||||||
# RAW
|
endforeach(filename)
|
||||||
ADD_TEST(j2i-${filename_temp}-raw ${EXECUTABLE_OUTPUT_PATH}/j2k_to_image -i ${filename} -o ${filename_temp}.raw)
|
|
||||||
# TGA
|
|
||||||
ADD_TEST(j2i-${filename_temp}-tga ${EXECUTABLE_OUTPUT_PATH}/j2k_to_image -i ${filename} -o ${filename_temp}.tga)
|
|
||||||
ENDFOREACH(filename)
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue