I wanna use both qmake and cmake to compile my own project .But it failed with the following log:
-- Configuring incomplete, errors occurred!
| make: *** [cmake_check_build_system] Error 1
| + cd /home/zoulz/fsl-release-bsp/wayland/tmp/work/cortexa9-vfp-neon-poky-linux-gnueabi/hmi/0.8.9-r0/hmi
| + do_compile
| + cmake_do_compile
| + [ ]
| + base_do_compile
| + [ -e Makefile -o -e makefile -o -e GNUmakefile ]
| + oe_runmake
| + bbnote make -j 8
| + echo NOTE: make -j 8
| NOTE: make -j 8
| + make -j 8
| CMake Error at /home/zoulz/fsl-release-bsp/wayland/tmp/sysroots/imx6dlsabreauto/usr/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:27 (message):
| The imported target "Qt5::Core" references the file
| but this file does not exist. Possible reasons include:
| * The file was deleted, renamed, or moved to another location.
| * An install or uninstall procedure did not complete successfully.
| * The installation package was faulty and contained
| but not all the files it references.
| Call Stack (most recent call first):
| /home/zoulz/fsl-release-bsp/wayland/tmp/sysroots/imx6dlsabreauto/usr/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake:6 (_qt5_Core_check_file_exists)
| /home/zoulz/fsl-release-bsp/wayland/tmp/sysroots/imx6dlsabreauto/usr/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:130 (include)
| /home/zoulz/fsl-release-bsp/wayland/tmp/sysroots/imx6dlsabreauto/usr/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:89 (find_package)
| /home/zoulz/fsl-release-bsp/wayland/tmp/sysroots/imx6dlsabreauto/usr/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:89 (find_package)
| CMakeLists.txt:25 (find_package)
| -- Configuring incomplete, errors occurred!
BEFORE bitbake my own bb ,I have installed qt5 and it has no error during compiling . I just wanna use qmake to generate some tools and make the project by cmake.How can I fix my bb or my CMakeLists.txt?