2019-03-14 06:51:16 +01:00
|
|
|
_find_package(${ARGS})
|
|
|
|
|
2019-05-29 01:58:00 +02:00
|
|
|
find_package(LibLZMA CONFIG)
|
2019-03-14 06:51:16 +01:00
|
|
|
find_package(JPEG)
|
|
|
|
find_package(ZLIB)
|
|
|
|
if(TARGET TIFF::TIFF)
|
2019-05-29 01:58:00 +02:00
|
|
|
set_property(TARGET TIFF::TIFF APPEND PROPERTY INTERFACE_LINK_LIBRARIES LibLZMA::LibLZMA JPEG::JPEG ZLIB::ZLIB)
|
2019-03-14 06:51:16 +01:00
|
|
|
if(UNIX)
|
|
|
|
set_property(TARGET TIFF::TIFF APPEND PROPERTY INTERFACE_LINK_LIBRARIES m)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
if(TIFF_LIBRARIES)
|
2019-05-29 01:58:00 +02:00
|
|
|
list(APPEND TIFF_LIBRARIES ${LZMA_LIBRARIES} ${JPEG_LIBRARIES} ${ZLIB_LIBRARIES})
|
2019-03-14 06:51:16 +01:00
|
|
|
if(UNIX)
|
|
|
|
list(APPEND TIFF_LIBRARIES m)
|
|
|
|
endif()
|
|
|
|
endif()
|
2019-05-29 01:58:00 +02:00
|
|
|
if(TIFF_LIBRARY)
|
|
|
|
list(APPEND TIFF_LIBRARY ${LZMA_LIBRARIES} ${JPEG_LIBRARIES} ${ZLIB_LIBRARIES})
|
|
|
|
if(UNIX)
|
|
|
|
list(APPEND TIFF_LIBRARY m)
|
|
|
|
endif()
|
|
|
|
endif()
|