diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2011-12-21 15:21:53 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2011-12-21 15:21:53 +0000 |
| commit | 7e6c287d78d135e5baa7097353652dfed48d74ce (patch) | |
| tree | 5229fa28dc106cb164f40b9dad36736cbc59c196 /tests | |
| parent | 6b1e9d1b4e3487a576dd62a99736f73aaef1599d (diff) | |
Another round of universal fixes
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/CMakeLists.txt | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 2db27bb6..9bf82c0c 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -22,9 +22,16 @@ SET(compareRAWimages_SRCS compareRAWimages.c ADD_EXECUTABLE(comparePGXimages ${comparePGXimages_SRCS}) TARGET_LINK_LIBRARIES(comparePGXimages - ${OPENJPEG_LIBRARY_NAME} ${Z_LIBNAME} - ${PNG_LIBNAME} ${TIFF_LIBNAME}) - + ${OPENJPEG_LIBRARY_NAME} + ${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(compareRAWimages ${compareRAWimages_SRCS}) |
