vcpkg/ports/tiff/vcpkg-cmake-wrapper.cmake
Stefano Sinigardi 0e77ca352e [tiff] use vcpkg wrapper for all configs, remove dead code (#5584)
* [tiff] use vcpkg wrapper for all configs, remove dead code

* [tiff] update CONTROL
2019-03-13 22:51:16 -07:00

18 lines
501 B
CMake

_find_package(${ARGS})
find_package(LibLZMA)
find_package(JPEG)
find_package(ZLIB)
if(TARGET TIFF::TIFF)
set_property(TARGET TIFF::TIFF APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${LIBLZMA_LIBRARIES} JPEG::JPEG ZLIB::ZLIB)
if(UNIX)
set_property(TARGET TIFF::TIFF APPEND PROPERTY INTERFACE_LINK_LIBRARIES m)
endif()
endif()
if(TIFF_LIBRARIES)
list(APPEND TIFF_LIBRARIES ${LIBLZMA_LIBRARIES} ${JPEG_LIBRARIES} ${ZLIB_LIBRARIES})
if(UNIX)
list(APPEND TIFF_LIBRARIES m)
endif()
endif()