If you want to use frameworks instead of dylibs, then check out the Xcode framework tutorial.
Next select your compiler.
Just keep the “Use default native compilers” option checked and ignore the other three options.
Watch out for which SFML version is found. If you are planning on using the SFML dylibs, then don't let CMake find the SFML Frameworks because your program will simply not work.
You can now change some of the options if you want. To build dylibs, keep TGUI_SHARED_LIBS checked and TGUI_BUILD_FRAMEWORK unchecked. After setting the options like you want them 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.
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 -j4”.
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”.
You should now be able to use TGUI.
Tip: The sfml example comes with a resourcePath() function which you must set before the paths to load resources. You can use tgui::setResourcePath(resourcePath()) at the beginning of your program so that everything tgui loads starts with that folder.