Skip to content

Conversation

@spanzeri
Copy link

@spanzeri spanzeri commented Jun 8, 2025

Hello. I was going to read and follow your book on linux, but I read there was no official support for any platform but Windows.
I went ahead and added support for linux (via cmake and fetchcontent) and cleaned up some of the warnings and errors that were present on compilers other than MSVC.
I am not sure if you'd be interested at all in this change or supporting non-windows platform at all.
I understand if you are not, but in case I thought someone looking for linux support might stumble on this PR and could use it as a starting point.
Thank you for the code and the book :)

Add CMakeLists.txt for project generation.
Fix errors and missing includes in GCC/clang.
Add support for external libraries (via cmake FetchContent). Note that
GLFW needs a newer (but compatible) version for newer cmake to work
correctly.
Add platform code for GetTimeMicroseconds and to get the current working
directory for file io.
Add .gitignore to ignore directories that are generally created by
cmake/clangd
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.

1 participant