mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-15 18:39:00 +08:00
27 lines
759 B
Diff
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"
|
||
|
+)
|