vcpkg/ports/libsquish/export-target.patch
Jack·Boos·Yu a6768f6426
[openimageio/libsquish] Export libsquish cmake target and fix find dependency libsquish (#20240)
* [libsquish] Export cmake target

* [openimageio] Fix find dependency libsquish

* version

* Rename the target

* Re-fix dependency libsquish, apply official changes

* version stuff

* more version

* Change namespace

* Update patch

* version

* Remove unused patch

* version

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2021-10-11 10:22:36 -07:00

20 lines
577 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a3ecdde..94c7b3d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -120,8 +120,14 @@ INCLUDE(GNUInstallDirs)
INSTALL(
TARGETS squish
+ EXPORT unofficial-libsquishConfig
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)
+
+INSTALL(EXPORT unofficial-libsquishConfig
+ NAMESPACE unofficial::libsquish::
+ DESTINATION share/unofficial-libsquish
+)