SFML community forums
General => SFML website => Topic started by: mucaho on October 30, 2015, 10:02:12 pm
-
JetBrains CLion https://www.jetbrains.com/clion/ (https://www.jetbrains.com/clion/) uses cmake for projects.
There is already a great tutorial on the wiki covering almost everything https://github.com/SFML/SFML/wiki/Tutorial%3A-Build-your-SFML-project-with-CMake (https://github.com/SFML/SFML/wiki/Tutorial%3A-Build-your-SFML-project-with-CMake).
-
If you are interested I did a tutorial on using SFML with CLion on Mac OS (http://www.gamefromscratch.com/post/2015/06/02/Creating-an-SFML-project-on-Mac-OS-using-CLion-and-CMake.aspx)
-
I actually think providing a tutorial on how to use SFML through CMake might be a good idea. Most of it is essentially already documented in the FindSFML.cmake file, but it's not that obvious to look there first.
Once you know how to setup your own basic CMake project, using CLion will be really easy and just a matter of getting used to some UI elements, so I don't think we need a tutorial for that specifically.
What do others think?
-
I would really like to see a dedicated cmake+SFML tutorial, cause I still can't get my head around using cmake in my own projects, though I can compile premade cmake projects (like SFML itself). Things like out-of-source build, include directories, sub-directories come to my mind. The cmake documentation itself was not very helpful, so real-life examples would be awesome.
-
Keep in mind though that it won't be a full on CMake tutorial, but will mostly just show how one can use the FindSFML.cmake file. So don't think you would be able to learn CMake just with that tutorial - if we decide to write it. ;)