mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-17 05:27:54 +08:00
408a9027bf
- [X] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md) - [X] SHA512s are updated for each updated download - [ ] ~The "supports" clause reflects platforms that may be fixed by this new version~ - [ ] ~Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file.~ - [ ] ~Any patches that are no longer applied are deleted from the port's directory.~ - [X] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [X] Only one version is added to each modified port's versions file.
24 lines
773 B
Diff
24 lines
773 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index ab733f5..a52dc59 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -38,11 +38,18 @@ endif()
|
|
|
|
install(
|
|
TARGETS Lerc
|
|
+ EXPORT LercTargets
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
|
)
|
|
+target_include_directories(Lerc PUBLIC "$<INSTALL_INTERFACE:include>")
|
|
+install(EXPORT LercTargets
|
|
+ FILE unofficial-lerc-config.cmake
|
|
+ NAMESPACE unofficial::Lerc::
|
|
+ DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/unofficial-lerc"
|
|
+)
|
|
|
|
# Handle both absolute paths (e.g. NixOS) and relative for a relocatable package
|
|
if(IS_ABSOLUTE "${CMAKE_INSTALL_INCLUDEDIR}")
|