For a while now, I’ve been doing a lot of things with SFML such as tests for the game that I’m developing, as well as animations, tests, … and other things.
And tired of creating projects from scratch, I created a command that automates the creation of SFML and C++ projects.
This is a basic code that for now only works for SFML, but in the future I intend to expand it to several types of libraries, examples: Raylib, OpenGL(with GLFW), Dear ImGui(with OpenGL with GLFW), SDL(2
and 3
), SFML3 and others.
The optional dependency is Terlang to compile and install, but you can compile and install manually if you want.
Download, unzip, enter pro++/
, compile and install:
wget https://terminalroot.com.br/downs/pro++.zip
unzip pro++.zip
cd pro++
ter build.ter
ter install.ter
To create your project, just run the command and enter the name of the Project/Class you want as a parameter (if there are spaces in the name, use quotes to indicate it), and then enter and compile with Terlang:
pro++ "My Project"
cd MyProject
ter build.ter
In this case, it will create the directory and files:
MyProject
├── build.ter
├── main.cpp
├── my-project.cpp
└── my-project.hpp
The project, after being compiled, will automatically run the binary.
If you want to uninstall:
sudo rm /usr/local/bin/pro++
.
cpp cppdaily sfml terlang cli commands