2018-08-03 15:14:51 +08:00
|
|
|
_find_package(${ARGS})
|
|
|
|
|
|
|
|
if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static")
|
2018-10-22 19:16:02 +08:00
|
|
|
find_package(LibLZMA)
|
2018-08-03 15:14:51 +08:00
|
|
|
find_package(JPEG)
|
|
|
|
find_package(ZLIB)
|
|
|
|
|
|
|
|
if(TARGET TIFF::TIFF)
|
2018-10-22 19:16:02 +08:00
|
|
|
set_property(TARGET TIFF::TIFF APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${LIBLZMA_LIBRARIES} JPEG::JPEG ZLIB::ZLIB)
|
2018-09-12 04:11:51 +08:00
|
|
|
if(UNIX)
|
|
|
|
set_property(TARGET TIFF::TIFF APPEND PROPERTY INTERFACE_LINK_LIBRARIES m)
|
|
|
|
endif()
|
2018-08-03 15:14:51 +08:00
|
|
|
endif()
|
|
|
|
if(TIFF_LIBRARIES)
|
2018-10-22 19:16:02 +08:00
|
|
|
list(APPEND TIFF_LIBRARIES ${LIBLZMA_LIBRARIES} ${JPEG_LIBRARIES} ${ZLIB_LIBRARIES})
|
2018-08-03 15:14:51 +08:00
|
|
|
if(UNIX)
|
|
|
|
list(APPEND TIFF_LIBRARIES m)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
endif()
|