2012-03-01 16:15:37 +00:00
|
|
|
This directory contains a collection of toolchain definitions for cross
|
|
|
|
compilation, currently limited to compiling Win32 binaries on Linux.
|
|
|
|
|
|
|
|
The toolchain file naming scheme is as follows:
|
|
|
|
|
2010-09-20 18:56:44 +00:00
|
|
|
host-system-compiler.cmake
|
|
|
|
|
2012-03-01 16:15:37 +00:00
|
|
|
To use these files you add a special parameter when configuring the source tree:
|
|
|
|
|
|
|
|
cmake -DCMAKE_TOOLCHAIN_FILE=<toolchain-file> .
|
|
|
|
|
|
|
|
For example, to use the Debian GNU/Linux MinGW package, run CMake like this:
|
|
|
|
|
2012-07-15 14:55:50 +00:00
|
|
|
cmake -DCMAKE_TOOLCHAIN_FILE=CMake/i586-mingw32msvc.cmake .
|
2012-03-01 16:15:37 +00:00
|
|
|
|
|
|
|
For more details see this article:
|
|
|
|
|
|
|
|
http://www.paraview.org/Wiki/CMake_Cross_Compiling
|
2010-09-20 18:56:44 +00:00
|
|
|
|