Another round of universal fixes

This commit is contained in:
Mathieu Malaterre 2011-12-21 15:21:53 +00:00
parent 6b1e9d1b4e
commit 7e6c287d78
1 changed files with 10 additions and 3 deletions

View File

@ -22,9 +22,16 @@ SET(compareRAWimages_SRCS compareRAWimages.c
ADD_EXECUTABLE(comparePGXimages ${comparePGXimages_SRCS}) ADD_EXECUTABLE(comparePGXimages ${comparePGXimages_SRCS})
TARGET_LINK_LIBRARIES(comparePGXimages TARGET_LINK_LIBRARIES(comparePGXimages
${OPENJPEG_LIBRARY_NAME} ${Z_LIBNAME} ${OPENJPEG_LIBRARY_NAME}
${PNG_LIBNAME} ${TIFF_LIBNAME}) ${PNG_LIBNAME} ${TIFF_LIBNAME}
)
# To support universal exe:
IF(ZLIB_FOUND AND APPLE)
TARGET_LINK_LIBRARIES(comparePGXimages z)
ELSe(ZLIB_FOUND AND APPLE)
TARGET_LINK_LIBRARIES(comparePGXimages ${Z_LIBNAME})
ENDIF(ZLIB_FOUND AND APPLE)
ADD_EXECUTABLE(compare_dump_files ${compare_dump_files_SRCS}) ADD_EXECUTABLE(compare_dump_files ${compare_dump_files_SRCS})
ADD_EXECUTABLE(compareRAWimages ${compareRAWimages_SRCS}) ADD_EXECUTABLE(compareRAWimages ${compareRAWimages_SRCS})