lorli
Coder
How can I compile my sfml project using cmake? Using simple g++ command I would do this
so far I have this in my cmake file:
I installed sfml using
I compiled it using cmake before, but I forgot how and my projects was deleted by accident. How can I do it?
Bash:
g++ -o test file1.cpp file2.cpp -lsfml-graphics -lsfml-window -lsfml-system
Code:
cmake_minimum_required(VERSION 3.25.2)
project(life)
set (SOURCES file1.cpp file2.cpp)
add_executable(${PROJECT_NAME} ${SOURCES})
Bash:
sudo pacman -S sfml