[cmake-developers] [PATCH 3/3] FindQt4: document cross compilation
Clinton Stimpson
clinton at elemtech.com
Wed Jul 29 09:45:43 EDT 2015
Hi Pascal,
Thanks for the patches.
Can you share with us why setting CMAKE_FIND_ROOT_PATH does not work, or how
this new method compares?
For example, in the toolchain file:
SET(CMAKE_FIND_ROOT_PATH /path/to/Qt ...)
Clint
On Wednesday, July 29, 2015 02:32:48 PM Pascal Bach wrote:
> ---
> Modules/FindQt4.cmake | 20 ++++++++++++++++++++
> 1 file changed, 20 insertions(+)
>
> diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake
> index 9d03378..64c06e1 100644
> --- a/Modules/FindQt4.cmake
> +++ b/Modules/FindQt4.cmake
> @@ -29,6 +29,26 @@
> # for a particular executable, set the ``QT4_NO_LINK_QTMAIN`` target
> # property to ``TRUE`` on the executable.
> #
> +# Cross Compile
> +# ^^^^^^^^^^^^^
> +#
> +# To find Qt in a cross compile environment set the following variables in
> your toolchain file: +#
> +#
> +# ``QT_BINARY_DIR`` => Path to native Qt binary directory
> +# ``QT_LIBRARY_DIR`` => Path to target Qt library directory
> +# ``QT_INCLUDE_DIR`` => Path to target Qt include directory
> +# ``QT_MKSPECS_DIR`` => Path to target Qt mkspecs directory
> +
> +# example
> +#
> +# ::
> +# set( QT_BINARY_DIR /sysroots/x86_64-linux/usr/bin )
> +# set( QT_LIBRARY_DIR /sysroots/arm/usr/lib )
> +# set( QT_INCLUDE_DIR /sysroots/arm/usr/include/qtopia )
> +# set( QT_MKSPECS_DIR /sysroots/arm/usr/share/qtopia/mkspecs )
> +#
> +#
> # Qt Build Tools
> # ^^^^^^^^^^^^^^
> #
More information about the cmake-developers
mailing list