2020-10-09 14:35:45 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
|
|
index e90fcdd..17c79e8 100644
|
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2022-09-21 02:37:29 +08:00
|
|
|
@@ -26,12 +26,19 @@ add_library(LercLib ${SOURCES})
|
2022-05-11 02:37:35 +08:00
|
|
|
endif()
|
2020-10-09 14:35:45 +08:00
|
|
|
|
|
|
|
install(
|
2022-05-11 02:37:35 +08:00
|
|
|
TARGETS Lerc
|
|
|
|
+ EXPORT LercTargets
|
2020-10-09 14:35:45 +08:00
|
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
2022-05-11 02:37:35 +08:00
|
|
|
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
2020-10-09 14:35:45 +08:00
|
|
|
)
|
2022-05-11 02:37:35 +08:00
|
|
|
+target_include_directories(Lerc PUBLIC "$<INSTALL_INTERFACE:include>")
|
2020-10-09 14:35:45 +08:00
|
|
|
+install(EXPORT LercTargets
|
2022-05-11 02:37:35 +08:00
|
|
|
+ FILE unofficial-lerc-config.cmake
|
|
|
|
+ NAMESPACE unofficial::Lerc::
|
|
|
|
+ DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/unofficial-lerc"
|
2020-10-09 14:35:45 +08:00
|
|
|
+)
|
2022-09-21 02:37:29 +08:00
|
|
|
|
|
|
|
# Configure and install pkgconfig file
|
|
|
|
configure_file(Lerc.pc.in ${CMAKE_CURRENT_BINARY_DIR}/Lerc.pc @ONLY)
|