Mqtt | Qt Forum

Sorry for explaining it wrong. When I add to Cmakefile.txt
find_package(Qt6 REQUIRED COMPONENTS Mqtt)
target_link_libraries(mytarget PRIVATE Qt6::Mqtt)
I get the error:
C:\Projects_Qt\MqttTest\CMakeLists.txt:14: error: Found package configuration file:

C:/Qt/6.8.0/mingw_64/lib/cmake/Qt6/Qt6Config.cmake

but it set Qt6_FOUND to FALSE so package “Qt6” is considered to be NOT
FOUND. Reason given by package:

Failed to find required Qt component “Mqtt”.

Expected Config file at
“C:/Qt/6.8.0/mingw_64/lib/cmake/Qt6Mqtt/Qt6MqttConfig.cmake” does NOT exist

Read more here: Source link