vcpkg/ports/lerc/create_package.patch
Nathan 95c0643813
[lerc] Export Package (#13724)
Co-authored-by: Nathan Mercer <nmercer@intermap.com>
Co-authored-by: wangli28 <wangli28@beyondsoft.com>
2020-10-08 23:35:45 -07:00

27 lines
759 B
Diff

CMakeLists.txt | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e90fcdd..17c79e8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,7 +17,7 @@ add_library(LercLib ${SOURCES})
target_link_libraries (LercLib)
install(
- TARGETS LercLib
+ TARGETS LercLib EXPORT LercTargets
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
@@ -28,3 +28,9 @@ install(
FILES "include/Lerc_types.h" "include/Lerc_c_api.h"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)
+
+install(EXPORT LercTargets
+ FILE lercConfig.cmake
+ NAMESPACE Esri::
+ DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/lerc"
+)