{"repo":"SFML/cmake-sfml-project","free":true,"listed":false,"github":"https://github.com/SFML/cmake-sfml-project","clone":"git clone https://github.com/SFML/cmake-sfml-project.git","description":"Repository template for SFML projects using CMake","language":"CMake","stars":614,"topics":["sfml","cmake","template"],"license":null,"category":"cli-tools","readme_excerpt":"CMake SFML Project Template This repository template should allow for a fast and hassle-free kick start of your next SFML project using CMake. Thanks to GitHub's nature of templates, you can fork this repository without inheriting its Git history. The template starts out very basic, but might receive additional features over time: - Basic CMake script to build your project and link SFML on any operating system - Basic GitHub Actions script for all major platforms Quick start Command line 1. Install Git and CMake. Use your system's package manager if available. 2. Follow GitHub's instructions for how to use their project template feature to create your own project. If you don't want to use GitHub, see the section below. 3. Clone your new GitHub repo and open the repo in your text editor of choice. 4. Open CMakeLists.txt. Rename the project and the target name of the executable to whatever name you want. Make sure to change all occurrences. 5. If you want to add or remove any .cpp files, change the source files listed in the add executable call in CMakeLists.txt to match the source files your project requires. If you plan on keeping the default main.cpp file then no changes are required. 6. If your code uses the Audio or Network modules then add SFML::Audio or SFML::Network to the target link libraries call alongside the existing SFML::Graphics library that is being linked. 7. If you use Linux, install SFML's dependencies using your system package manager. On Ubuntu and other D","default_branch":null,"files":null,"tree":[],"storefront":"/r/SFML","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SFML/cmake-sfml-project/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}