So I found that my error was due to the CMAKE_PREFIX_PATH variable which was pointing to the Qt directory and not the Felgo Directory
set(CMAKE_PREFIX_PATH "C:/Felgo/Felgo/mingw_32")
This line allows me to build cmake.
Now I’m building my project and got the error
C:\Felgo\Felgo\mingw_32\include\Felgo\felgoliveclient.h:6: erreur : QApplication: No such file or directory
QApplication is on the Qt::Widgets library so, I include it as well :
find_package(Qt5 COMPONENTS Core Quick Widgets REQUIRED)
target_link_libraries(QtQuickFelgoLiveExample PRIVATE Qt5::Core Qt5::Quick Qt5::Widgets Felgo FelgoLive)
But when I compile I got this error which is a make error and is realy strange…
No rule to make target 'Felgo-NOTFOUND', needed by 'QtQuickFelgoLiveExample.exe'. Stop.
I’m new to CMake and Felgo but this Behavior is strange isn’t it ?
In the same way, some of CMake commands do not work on Felgo Client but works on Qt Creator, like source_group(TREE … ) which has a weird behavior on Felgo Client…
What’s wrong ? I just download the Felgo client and The Github package given by Alex.
I tried on Qt Creator and the error was exactly the same