Hello,
I have a project with CMAKE, which has following line in the CMakeLists.txt:
find_package(Qt5 CONFIG REQUIRED Core DBus Sql Network HttpServer)
I have following two dependencies set in my .bb file:
DEPENDS += " qtbase qttools"
RDEPENDS_${PN} += "qtwayland"
While building, it throws an error:
-- Configuring done
CMake Error at CMakeLists.txt:17 (add_executable):
Target "BuiltTarget" links to target "Qt5::Core" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at CMakeLists.txt:17 (add_executable):
Target "BuiltTarget" links to target "Qt5::DBus" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at CMakeLists.txt:17 (add_executable):
Target "BuiltTarget" links to target "Qt5::Sql" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at CMakeLists.txt:17 (add_executable):
Target "BuiltTarget" links to target "Qt5::Network" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
CMake Error at CMakeLists.txt:17 (add_executable):
Target "BuiltTarget" links to target "Qt5::HttpServer" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
How can I add these missing packages ?
Thank you!