Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake build support. #363

Draft
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

waywardmonkeys
Copy link
Contributor

This allows either building a distribution of the library and headers via cmake or using it via FetchContent.

@waywardmonkeys waywardmonkeys marked this pull request as draft January 27, 2024 16:55
@waywardmonkeys
Copy link
Contributor Author

This has a lot to be done yet and I've left some TODO comments with either notes about things to do yet or questions to be resolved at some point.

cc: @eliemichel

This allows either building a distribution of the library and headers
via cmake or using it via `FetchContent`.

find_program(WGPU_NATIVE_CARGO_BINARY cargo)

# TODO: Use Corrosion instead?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked out Corrosion and it seems to provide everything we need. Let's try using that.
https://corrosion-rs.github.io/corrosion/usage.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants