Are you using the Github sources as SFML_ROOT or are you building then installing SFML and using that as your SFML_ROOT? For me, cmake complains about missing files if SFML_ROOT is set to the Github sources.
The process behind how I got everything to compile and build is as follows.
Download most recent SFML sources.
Use cmake-gui to create a Visual Studio solution that will build the static libraries.
Inside of the solution, I run Build on the INSTALL project, which creates an SFML distribution that I will use as SFML_ROOT
Download most recent TGUI sources with the FindSFML.cmake change.
I apply the line 17 patch you provided earlier.
I set SFML_ROOT to the location that I built and installed SFML to.
I untick TGUI_SHARED_LIBS and tick TGUI_BUILD_FORM_BUILDER.
I hit configure and it finds FREETYPE_LIBRARY GLEW_LIBRARY JPEG_LIBRARY
I hit configure again since those are showing red.
I hit Generate.
The solution that cmake spits out using this process works like a charm. No need to change the CMAKE_MODULE_PATH or copy any files. SFML_ROOT just needs to be set to a SFML source location that has been created through the install process.
The process behind how I got everything to compile and build is as follows.
Download most recent SFML sources.
Use cmake-gui to create a Visual Studio solution that will build the static libraries.
Inside of the solution, I run Build on the INSTALL project, which creates an SFML distribution that I will use as SFML_ROOT
Download most recent TGUI sources with the FindSFML.cmake change.
I apply the line 17 patch you provided earlier.
I set SFML_ROOT to the location that I built and installed SFML to.
I untick TGUI_SHARED_LIBS and tick TGUI_BUILD_FORM_BUILDER.
I hit configure and it finds FREETYPE_LIBRARY GLEW_LIBRARY JPEG_LIBRARY
I hit configure again since those are showing red.
I hit Generate.
The solution that cmake spits out using this process works like a charm. No need to change the CMAKE_MODULE_PATH or copy any files. SFML_ROOT just needs to be set to a SFML source location that has been created through the install process.