Post by Kornel Benko+ if(APPLE)
+ find_package(Qt5MacExtras)
+ elseif(UNIX)
+ find_package(Qt5X11Extras)
+ endif()
Why this? find_package(Qt5X11Extras) should determine, if QT
is built over X11.
This is platform independent.
No, it doesn't break on other platforms.
But it complains about not being able to find X11 extras on a Mac.
Either the message is stupid or it is expected to not look for X11 on a Mac.
This is the message text:
CMake Warning at CMakeLists.txt:557 (find_package):
By not providing "FindQt5X11Extras.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"Qt5X11Extras", but CMake did not find one.
Could not find a package configuration file provided by "Qt5X11Extras" with
any of the following names:
Qt5X11ExtrasConfig.cmake
qt5x11extras-config.cmake
Add the installation prefix of "Qt5X11Extras" to CMAKE_PREFIX_PATH or set
"Qt5X11Extras_DIR" to a directory containing one of the above files. If
"Qt5X11Extras" provides a separate development package or SDK, be sure it
has been installed.
Post by Kornel BenkoWe need it only for keytests.
No. For Mac builds it is needed to compile Mac extras dependencies like QMacStyle.
I cannot say what is to do for Windows.
Stephan