This repository contains Bash and PowerShell scripts to generate CMake projects that include SFML library.
Please ensure that following required components have been installed:
- CMake
- GNU C++/G++
- GDB
- Git
- CLion
Please ensure that following required components have been installed:
- CLang
- Homebrew
- Git
- CLion
Please ensure that following required components have been installed:
- Visual Studio Community
- Git
- CLion
- Open a terminal: [Ctrl] + [Alt] + [T]
- Ensure CMake has been installed:
cmake --version
or install as follow:sudo apt install cmake
- Ensure GNU C++/G++ has been installed:
g++ --version
or install as follow:sudo apt install g++
- Ensure GNU Debug has been installed:
gdb --version
or install as follow:sudo apt install gdb
- Ensure Git has been installed:
git --version
or install as follow:sudo apt install git
- Install CLion see more details in Linux - Ubuntu section: JetBrains
- Install SFML
- In the terminal go to Home folder:
cd ~
- Verify if folder CLionProjects exists:
ls
otherwise create that new folder:mkdir CLionProjects
- Go to CLionProjects folder:
cd CLionProjects
- Download game project:
git clone https://github.com/rrivas-utec/game_generator.git
, and finally - Execute the following statements:
cd ~/CLionProjects/game_generator/installers/linux ./install_sfml.sh
- In the terminal go to Home folder:
- Open a terminal: [Command] + [Spacebar] and write in:
terminal
- Ensure CLang has been installed:
clang --version
or if it is necessary run follow statement:xcode-select --install
- Ensure Homebrew has been installed:
brew --version
or see: Homebrew - Ensure Git has been installed:
git --version
or if it is necessary run the following statement:brew install git
- Install CLion see more details in MacOS section: JetBrains
- Install SFML:
- In the terminal go to Home folder:
cd ~
- Verify if folder CLionProjects exists:
ls
otherwise create that new folder:mkdir CLionProjects
- Go to CLionProjects folder:
cd CLionProjects
- Download game_generator project:
git clone https://github.com/rrivas-utec/game_generator.git
, and finally - Execute the following statements:
cd ~/CLionProjects/game_generator/installers/macOS ./install_sfml.sh
- In the terminal go to Home folder:
- Install Visual Studio Community 2019: VS Community
Minimum Requirement:
- Open a PowerShell terminal: [] + [R] and write in:
powershell
- Install Git 2.20 or greater: Git
- Install CLion see more details in CLion 2019 - Visual Studio section: JetBrains
- Install SFML:
- In the PowerShell terminal go to Home folder:
cd ~
- Verify if CLionProjects folder exists:
ls
otherwise create the new folder:mkdir CLionProjects
- Go to CLionProjects folder:
cd CLionProjects
- Download game_generator project:
git clone https://github.com/rrivas-utec/game_generator.git
, and finally - Execute the following statements:
cd ~/CLionProjects/game_generator/installers/windows Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process Y ./install_sfml.ps1
- In the PowerShell terminal go to Home folder:
- Open a terminal: [Ctrl] + [Alt] + [T]
- Execute the following statement:
cd ~/CLionProjects/game_generator/generators/linux
- Define the name of your project, for example pacman and execute the following statement:
This statement will generate a new folder called pacman at same level of game_generator folder, in this case both folders will be inside of CLionProjects folder and pacman folder will contain the following files:
./gen_project.sh pacman
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.
- Open a terminal: [Command] + [Spacebar] and write in:
terminal
- Execute the following statement:
cd ~/CLionProjects/game_generator/generators/macOS
- Follow same Linux instructions since step 3.
- Open a PowerShell terminal: [] + [R] and write in:
powershell
- Execute the following statement:
cd ~/CLionProjects/game_generator/generators/windows
- Define the name of your project, for example pacman and execute the following statement:
This statement will generate a new folder called pacman at same level of game_generator 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.
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process A ./gen_project.ps1 pacman