I'm putting together an .mk file for a Qt library that uses CMake. I was able to fill in most of the $(PKG)_* variables without any issues. In particular, the library's only dependencies are gcc and qtbase.
However, I ran into some issues with $(PKG)_BUILD. The library uses "find_package(Qt5Network)" which causes the following error message:
Could not find a package configuration file provided by "Qt5Network"...
cmake .. \
-DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
-DCMAKE_PREFIX_PATH='$(PREFIX)/$(TARGET)/qt5/lib/cmake'