2020-10-09 14:35:45 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2024-03-08 14:49:57 +08:00
|
|
|
index ab733f5..a52dc59 100644
|
2020-10-09 14:35:45 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2024-03-08 14:49:57 +08:00
|
|
|
@@ -38,11 +38,18 @@ 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
|
|
|
|
2024-03-08 14:49:57 +08:00
|
|
|
# Handle both absolute paths (e.g. NixOS) and relative for a relocatable package
|
|
|
|
if(IS_ABSOLUTE "${CMAKE_INSTALL_INCLUDEDIR}")
|