2012-07-31 18:51:49 -04:00
|
|
|
This directory contains a collection of toolchain definitions for
|
|
|
|
cross-compiling for Windows using MinGW on various other systems.
|
2010-09-20 14:56:44 -04:00
|
|
|
|
2012-03-01 11:15:37 -05:00
|
|
|
To use these files you add a special parameter when configuring the source tree:
|
|
|
|
|
|
|
|
cmake -DCMAKE_TOOLCHAIN_FILE=<toolchain-file> .
|
|
|
|
|
2012-07-31 18:51:49 -04:00
|
|
|
The exact file to use depends on the prefix used by the MinGW binaries on your
|
|
|
|
system. You can usually see this in the /usr directory, i.e. the Ubuntu
|
|
|
|
MinGW-w64 packages have /usr/x86_64-w64-mingw32 for the 64-bit compilers, so the
|
|
|
|
correct invocation would be:
|
2012-03-01 11:15:37 -05:00
|
|
|
|
2012-07-31 18:51:49 -04:00
|
|
|
cmake -DCMAKE_TOOLCHAIN_FILE=CMake/x86_64-w64-mingw32.cmake .
|
2012-03-01 11:15:37 -05:00
|
|
|
|
|
|
|
For more details see this article:
|
|
|
|
|
|
|
|
http://www.paraview.org/Wiki/CMake_Cross_Compiling
|
2010-09-20 14:56:44 -04:00
|
|
|
|