forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libwebm] Add export config (microsoft#42040)
- Loading branch information
1 parent
1e14cd7
commit 84a143e
Showing
5 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index ebb3333..8fd53ef 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -459,13 +459,19 @@ endif() | ||
# webm_parser headers are rooted at webm/. | ||
set_target_properties(webm PROPERTIES PUBLIC_HEADER | ||
"${webm_parser_public_headers}") | ||
+set_target_properties(webm PROPERTIES EXPORT_NAME libwebm) | ||
+target_include_directories(webm PUBLIC $<INSTALL_INTERFACE:include>) | ||
install( | ||
- TARGETS webm | ||
+ TARGETS webm EXPORT unofficial-libwebm-targets | ||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} | ||
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/webm) | ||
|
||
+install(EXPORT unofficial-libwebm-targets | ||
+ FILE unofficial-libwebm-config.cmake | ||
+ NAMESPACE unofficial::libwebm:: | ||
+ DESTINATION share/unofficial-libwebm) | ||
# Install common headers into a subdirectory to avoid breaking nested includes. | ||
install(FILES ${libwebm_common_public_headers} | ||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/webm/common) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters