-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[angle] Improve UX for unofficial CMake package (#28547)
* [angle] Propagate transitive dependencies * [angle] Add usage info for unofficial CMake targets Only the unofficial::angle::libGLESv2 and unofficial::angle::libEGL targets are meant to be used, because they are the targets that no other depends on. Co-authored-by: friendlyanon <friendlyanon@users.noreply.github.com>
- Loading branch information
1 parent
4548ef8
commit 58054d0
Showing
7 changed files
with
26 additions
and
3 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
include(CMakeFindDependencyMacro) | ||
find_dependency(ZLIB) | ||
if(UNIX AND NOT APPLE) | ||
find_dependency(X11 COMPONENTS Xext Xi) | ||
endif() | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/unofficial-angle-targets.cmake") |
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,8 @@ | ||
The package angle provides unofficial CMake targets: | ||
|
||
find_package(unofficial-angle REQUIRED CONFIG) | ||
target_link_libraries(main PRIVATE unofficial::angle::libGLESv2) | ||
|
||
# Or use the EGL target | ||
find_package(unofficial-angle REQUIRED CONFIG) | ||
target_link_libraries(main PRIVATE unofficial::angle::libEGL) |
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