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

Automatically download SDL with CMake? #4

Open
icculus opened this issue Sep 21, 2023 · 2 comments
Open

Automatically download SDL with CMake? #4

icculus opened this issue Sep 21, 2023 · 2 comments

Comments

@icculus
Copy link
Collaborator

icculus commented Sep 21, 2023

Should we use ExternalProject to either download a formal release, or clone from GitHub, so the user doesn't have to bother with this at all?

I don't know much about ExternalProject, so this might be a terrible idea.

@aseiis
Copy link

aseiis commented Jun 17, 2024

What about CMake FetchContent? It is often cited as the current most used practice for consuming libs available on GitHub
For this kind of "Hello World" project it could be a good fit since it's quite simple to use

edit: a pull request has already been opened with FetchContent integration here : #5

@ChillerDragon
Copy link

I assume this issue can be closed. FetchContent is there and seems to be working.

FetchContent_Declare(
SDL3
GIT_REPOSITORY "https://github.com/libsdl-org/SDL.git"
GIT_TAG "main"
EXCLUDE_FROM_ALL
)
FetchContent_MakeAvailable(SDL3)

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

No branches or pull requests

3 participants