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

Add support for building with CMake #327

Merged
merged 1 commit into from
Aug 18, 2024

Conversation

skalleAnka
Copy link

This will make it possible to use CMake for building.

On Linux most IDEs/editors CMake seems to be the default option these days. On Windows it is the best option when using VSCode and is also supported natively by Visual Studio as an alternative to project files.

On linux this will find SDL, CURL and the codec packages automatically if they are installed. On Windows it uses the bundled libraries. I think it should be possible to reconfigure on Windows to use packages from some other location but I have not tested that.

It should be largely self-maintaining: If new source files are added to (or removed from) the Quake folder, it will pick them up without modification of the scripts.

I have tested this with Debian 12 Linux (GCC and Clang) and with Visual Studio 2022 and it seems to work.

@skalleAnka skalleAnka force-pushed the cmake-support branch 2 times, most recently from a04f471 to 08ce92c Compare August 4, 2024 20:28
@skalleAnka
Copy link
Author

Now also tested with MINGW - had some trouble with the SDL2main library but it should be sorted now.

@skalleAnka skalleAnka force-pushed the cmake-support branch 2 times, most recently from c0160f3 to 0758da2 Compare August 4, 2024 21:11
@skalleAnka
Copy link
Author

Modified it to extract version number from quakedef.h, making it even more maintenance free.

@skalleAnka
Copy link
Author

Updated PR to remove CD support as in master

@skalleAnka skalleAnka force-pushed the cmake-support branch 2 times, most recently from 82f5b87 to 706207a Compare August 17, 2024 20:02
@andrei-drexler andrei-drexler merged commit a8de85b into andrei-drexler:master Aug 18, 2024
6 checks passed
@andrei-drexler
Copy link
Owner

Added in a8de85b, thank you!

@skalleAnka skalleAnka deleted the cmake-support branch August 18, 2024 23:23
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