Our great sponsors
-
raylib-cmake-template
A minimal project template for raylib using CMake that works well in CLion & Visual Studio.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Or use CMake. CMake will detect a .cpp file and use g++ automatically. This looks like a good starting point.
There's also a cmake example I found that downloads the library: https://github.com/raysan5/raylib/blob/master/projects/CMake/CMakeLists.txt
In addition to the CMake usage, I've also put together some C++ Object Wrappers for raylib called "raylib-cpp". It's in no way needed in order to use Raylib, but does bring raylib more inline with C++ since you can use objects for things like Images and the Window, rather than global functions. There's also a CMake template for it to help you get set up faster: https://github.com/RobLoach/raylib-cpp/tree/master/projects/CMake