How do I compile this?
I have no idea how to compile this, nothing I have found online works at all...
Visual Studio Code with CMake C++ and a few other exts
Pretty sure you need these "C/C++" "C/C++ Include Guard " "CMake" & "CMake Tools"
You can have a look at this https://github.com/johnBuffer/AntSimulator#compilation, the procedure is similar.
For anyone having issues with the compilation, to compile just navigate to the main directory of 'ClothSimulation'
e.g. for me its ned@debian:~/ClothSimulation$
Here open a terminal and first make sure you have cmake, build-essential and gdb installed, if not you can just run;
sudo apt-get install cmake build-essential gdb
Now in the main directory run cmake .
Next run make
Then you can run the script with sudo ./Cloth
how do i specify where my sfml headers are located?
it gives me that project files may be invalid, no wonder, cause i didn't even include, the path where to get sfml headers, and i don't really know how to
If SFML is intalled CMake will find it automatically. What os are you on ?
windows
should i put sfml in the path, or something?
what do you mean by installed? just being on my computer? Yes it is installed, i used it quite many times for my sfml projects
tho, it's not in the same folder as cmake, not sure how cmake searches for the needed libraries
What I mean by installed is "being known to cmake". To do so I personally build it myself and then build the "install" custom target in the solution generated by cmake
what does "install" custom target mean?
A custom Target is a file which will run install and some other script after.
e.g. In the ClothSimulation that would be the cmake_install.cmake as i show in the top right here:

I'm a little late to the party but I hope this helps someone. If you've downloaded a stable version of SFML, you can modify the SFML_DIR parameter in CMake to identify where you have SFML "installed", similar as such: