I can not find any example on how to download, build and link Qt5 in a cmake project with the ExternalProject_Add command.
I found some snippets but they are in itself not very useful:
ExternalProject_Add(qt5_build
DOWNLOAD_COMMAND "" UPDATE_COMMAND "" PATCH_COMMAND ""
SOURCE_DIR ${QT5_REPO_PATH}
CONFIGURE_COMMAND configure ${QT5_CONFIGURE}
BUILD_COMMAND nmake BUILD_IN_SOURCE 1
INSTALL_COMMAND nmake install
)
So how exactly is this supposed to work?
Since Qt is such a big library, I think it should have been done by several people by now...but to the best of my knowledge I did not find any good example.
The closest question I found is this one, but does not answer my question: CMake ExternalProject_Add Stop Executing on Warning