2019-03-29 06:46:03 +08:00
|
|
|
_find_package(${ARGS})
|
|
|
|
|
|
|
|
if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static")
|
2023-02-22 00:06:26 +08:00
|
|
|
if(NOT "@VCPKG_TARGET_IS_WINDOWS@")
|
2022-10-25 08:04:03 +08:00
|
|
|
find_package(Iconv REQUIRED)
|
|
|
|
endif()
|
2023-02-22 00:06:26 +08:00
|
|
|
if("@EXIV2_ENABLE_NLS@")
|
2021-07-20 07:42:44 +08:00
|
|
|
find_package(Intl REQUIRED)
|
|
|
|
endif()
|
2023-08-18 05:29:08 +08:00
|
|
|
if("@EXIV2_ENABLE_BMFF@")
|
|
|
|
find_package(unofficial-brotli CONFIG REQUIRED)
|
|
|
|
endif()
|
|
|
|
if("@EXIV2_ENABLE_XMP@")
|
|
|
|
find_package(expat CONFIG REQUIRED)
|
|
|
|
endif()
|
|
|
|
if("@EXIV2_ENABLE_PNG@")
|
|
|
|
find_package( ZLIB REQUIRED )
|
|
|
|
endif()
|
|
|
|
find_package(unofficial-inih CONFIG REQUIRED)
|
2019-03-29 06:46:03 +08:00
|
|
|
if(TARGET exiv2lib)
|
2023-02-22 00:06:26 +08:00
|
|
|
if(NOT "@VCPKG_TARGET_IS_WINDOWS@")
|
|
|
|
set_property(TARGET exiv2lib APPEND PROPERTY INTERFACE_LINK_LIBRARIES Iconv::Iconv)
|
2022-10-25 08:04:03 +08:00
|
|
|
endif()
|
2023-02-22 00:06:26 +08:00
|
|
|
if("@EXIV2_ENABLE_NLS@")
|
2023-08-18 05:29:08 +08:00
|
|
|
set_property(TARGET exiv2lib APPEND PROPERTY INTERFACE_LINK_LIBRARIES
|
|
|
|
"\$<\$<NOT:\$<CONFIG:DEBUG>>:${Intl_LIBRARY_RELEASE}>"
|
|
|
|
"\$<\$<CONFIG:DEBUG>:${Intl_LIBRARY_DEBUG}>"
|
|
|
|
)
|
2021-07-20 07:42:44 +08:00
|
|
|
endif()
|
2019-03-29 06:46:03 +08:00
|
|
|
endif()
|
|
|
|
endif()
|