diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2019-06-21 14:58:52 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2019-06-24 14:23:11 +0000 |
commit | 2895f3ffaa632f129232f70564a16f202ead0bda (patch) | |
tree | 4871a82cf1aa6f90542171bd4fec648fb714d9fb /bin/qt-cmake.in | |
parent | a581f917e2043828b032269dd6c8d60f338f3dba (diff) | |
download | qtbase-2895f3ffaa632f129232f70564a16f202ead0bda.tar.gz |
Generate a toolchain and convenience cmake wrapper
This gets us a step into the direction of convenience that qmake
offered:
* QtBase is configured with a long command line (especially when
cross-compiling)
* Afterwards application developers (or other module builds) can
just use qmake && make
By generating a toolchain file we can capture vcpkg and toolchain
chain-loading and a shell script can take care of providing the prefix
path.
Change-Id: Ided81f5432cab862306f2bea86cfe8e56adf71b0
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'bin/qt-cmake.in')
-rwxr-xr-x | bin/qt-cmake.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/qt-cmake.in b/bin/qt-cmake.in new file mode 100755 index 0000000000..efc8a850be --- /dev/null +++ b/bin/qt-cmake.in @@ -0,0 +1,3 @@ +#!/bin/sh + +exec @CMAKE_COMMAND@ -DCMAKE_TOOLCHAIN_FILE=@CMAKE_INSTALL_PREFIX@/@__GlobalConfig_install_dir@/qt.toolchain.cmake $* |