I did it. If someone need solution you just have to add target_link_libraries(${PROJECT_NAME} sfml-graphics sfml-window sfml-system) after you use add_executable. Very easy but for some reason I couldn't find the solution yesterday
Well no. I'm not really good at knowing what is happening at compile time, but I know that when I'm linking SFML libraries I have to use -lsfml-graphics -lsfml-window -lsfml-system when using g++ command. And I want to create makefile using cmake that will do it for me.
How can I compile my sfml project using cmake? Using simple g++ command I would do this g++ -o test file1.cpp file2.cpp -lsfml-graphics -lsfml-window -lsfml-system so far I have this in my cmake file:
cmake_minimum_required(VERSION 3.25.2)
project(life)
set (SOURCES file1.cpp file2.cpp)...
Thank you for tips! And about the age, I don't think something bad will happen if someone know my age. I don't care if someone will know my age or say something bad about me as far as they don't know my exact location. But yes, I'll be careful sharing more personal information. Thank you again!
I'm looking for someone that codes in C++ to create some simple projects with me and share experience. I'm 13 so I don't think it's ok i someone 43 yo will write to me to make some projects.
It's like "Looking for friend that codes in c++" kind of post. (I'm not very active, sorry for bad english)
I was thinking about making my terminal password manager and I want to make every of my apps +- good. So what I want is to store password for example hashed in file, but someone can just look at the code on my pc and see what I did to hash it and just unhash (Probably nobody will ever do that...
#include <iostream>
#define hello "Hello"
#define world ", World\n";
#define print std::cout<<
int main()
{
print hello world
}
What kind of questoins can I ask btw?