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