Our great sponsors
-
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.
Okay, so I'm assuming /Users/kadyr is the username for your mac, so let's say you are making an SFML Space Invaders clone. You'd make a directory invaders so it would be /Users/kadyr/invaders then make a CMakeLists.txt file in invaders and copy the contents of the template's [CMakeLists.txt](https://github.com/SFML/cmake-sfml-project/blob/master/CMakeLists.txt) into it. Next, in invaders directory create a build directory [/Users/kadyr/invaders/build] and a src director [/Users/kadyr/invaders/src] to put main.cpp and other code in (this one is just because the template looks for main.cpp in /src -- alternatively you could edit the add_executable() line and remove src/ if you plan to just dump all code into invaders directory). Then run the commands. Just change invaders to whatever you are naming the project and directory you're working on.
Related posts
- link_libraries in Neat and Efficient way
- Hi ive been stuck on this error all day and cannot find a solution that works for me anywhere, "fatal error: SFML\Graphics.hpp: No such file or directory #include <SFML\Graphics.hpp>" seems the compiler cannot find the files\ive set up my include incorrectly but i cant see how, any help appreciated
- C++ Roadmap for Simulation Projects with graphics
- I wrote up a guide on installing SFML for M1 Macs
- Help I'm unable to even start basic SFML up