GitHub - Rrivas-Utec - Game
GitHub - Rrivas-Utec - Game
rrivas-utec / game
Over 40 million developers use GitHub together to host and review code, project manage, and build software together across more than 100 million
projects.
README.md
Welcome to Game
This repository contains Bash and PowerShell scripts to generate CMake projects that include SFML library.
Table of Content
1. Requirements
Linux - Ubuntu
macOS
Windows
2. Installation
Linux - Ubuntu
macOS
Windows
3. How to generate a new SFML CMake project?
Linux - Ubuntu
macOS
Windows
Requirements
CMake
GNU C++/G++
https://github.com/rrivas-utec/game 1/4
27/8/2019 GitHub - rrivas-utec/game
GDB
Git
CLion
CLang
Homebrew
Git
CLion
Windows 10
Installation
cd ~/CLionProjects/game/installers/linux
./install_sfml.sh
cd ~/CLionProjects/game/installers/macOS
./install_sfml.sh
Windows 10
https://github.com/rrivas-utec/game 2/4
27/8/2019 GitHub - rrivas-utec/game
cd ~/CLionProjects/game/installers/windows
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process
Y
./install_sfml.ps1
cd ~/CLionProjects/game/generators/linux
3. Define the name of your project, for example pacman and execute the following statement:
./gen_project.sh pacman
This statement will generate a new folder called pacman at same level of game folder, in this case both folders will be
inside of CLionProjects folder and pacman folder will contain the following files:
The project could be used by CLion IDE but also can be compiled in command line, in order to help command line
programming, it contains 3 additional scripts:
build.sh , to build a folder called build where CMake work stuff is saved.
run.sh , to compile the program and generate the executable, it verifies if build folder is available and if it is not,
the script builds it.
clean.sh , to clean any previous compilation.
https://github.com/rrivas-utec/game 3/4
27/8/2019 GitHub - rrivas-utec/game
cd ~/CLionProjects/game/generators/macOS
Windows 10
cd ~/CLionProjects/game/generators/windows
3. Define the name of your project, for example pacman and execute the following statement:
./gen_project.ps1 pacman
This statement will generate a new folder called pacman at same level of game folder as it was explained in prior cases
(linux and macOS) but it will not include any additional script so the recommendation for windows installation is to
execute this project from CLion IDE or similar.
https://github.com/rrivas-utec/game 4/4