blob: 7b06c119ba3f66eaa68e8640a9fc6044a3917fec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
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"
+)
|