Next select your compiler.
Just keep the “Use default native compilers” option checked and ignore the other three options.
It is possible that CMake will give you an error, it might looks for sfml in the wrong folder. As you can see on the screenshot it looks in the /Library/Frameworks/SFML.framework folder, while my headers are in “/usr/local/include”. So if you have this error then change the SFML_INCLUDE_DIR to the correct folder.
After you changed the SFML_INCLUDE_DIR (if it was necessary), and the other options that you would like to change, you need to press Configure again. Now you should have reached the message “Configuring done” at the bottom. All you have to do now is press Generate.
Some last notes about CMake:
You are not done yet.
CMake made a Makefile in the build directory that will build the library.
Open the terminal, go to the directory were the Makefile is and type “make”.
When this is done, type “sudo make install” and enter your password.
Go to the Build Settings.
Under “Linking” in “Other Linker Flags”, add “-ltgui” or “-ltgui-d”.
If you don’t see the “Linking” section, then you might need to select “All” instead of “Basic”.
Under “Search Paths” in “Header Search Paths”, add the include directory of tgui.
Under “Search Paths” in “Library Search Paths”, add “/usr/local/lib” if not already there.
You should now be able to use TGUI.
To test if it is working, simply take a working example code from sfml, include “TGUI\TGUI.hpp” and change sf::RenderWindow to tgui::Window.