mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 15:49:01 +08:00
32 lines
1000 B
Diff
32 lines
1000 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index ea4b2d2..f622d45 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -32,7 +32,10 @@ install(FILES
|
|
)
|
|
|
|
install(TARGETS lunasvg
|
|
- LIBRARY DESTINATION ${LUNASVG_LIBDIR}
|
|
- ARCHIVE DESTINATION ${LUNASVG_LIBDIR}
|
|
- INCLUDES DESTINATION ${LUNASVG_INCDIR}
|
|
-)
|
|
+ EXPORT unofficial-lunasvg-config
|
|
+ RUNTIME DESTINATION bin
|
|
+ LIBRARY DESTINATION lib
|
|
+ ARCHIVE DESTINATION lib
|
|
+ PUBLIC_HEADER DESTINATION include)
|
|
+
|
|
+install(EXPORT unofficial-lunasvg-config NAMESPACE unofficial::lunasvg:: DESTINATION share/unofficial-lunasvg)
|
|
\ No newline at end of file
|
|
diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt
|
|
index de58954..74149dc 100644
|
|
--- a/include/CMakeLists.txt
|
|
+++ b/include/CMakeLists.txt
|
|
@@ -1,4 +1,5 @@
|
|
target_include_directories(lunasvg
|
|
PUBLIC
|
|
- "${CMAKE_CURRENT_LIST_DIR}"
|
|
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>
|
|
+ $<INSTALL_INTERFACE:include>
|
|
)
|