mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 04:18:59 +08:00
26 lines
824 B
CMake
26 lines
824 B
CMake
_find_package(${ARGS})
|
|
|
|
if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static")
|
|
set(TIFF_EXTRA_LIBRARIES)
|
|
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
|
find_package(LibLZMA)
|
|
list(APPEND TIFF_EXTRA_LIBRARIES ${LIBLZMA_LIBRARIES})
|
|
endif()
|
|
|
|
find_package(JPEG)
|
|
find_package(ZLIB)
|
|
|
|
if(TARGET TIFF::TIFF)
|
|
set_property(TARGET TIFF::TIFF APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${TIFF_EXTRA_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 ${TIFF_EXTRA_LIBRARIES} ${JPEG_LIBRARIES} ${ZLIB_LIBRARIES})
|
|
if(UNIX)
|
|
list(APPEND TIFF_LIBRARIES m)
|
|
endif()
|
|
endif()
|
|
endif()
|