mirror of
https://github.com/glfw/glfw.git
synced 2024-11-14 14:33:52 +00:00
20 lines
586 B
Plaintext
20 lines
586 B
Plaintext
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:
|
|
|
|
host-system-compiler.cmake
|
|
|
|
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:
|
|
|
|
cmake -DCMAKE_TOOLCHAIN_FILE=CMake/i586-mingw32msvc.cmake .
|
|
|
|
For more details see this article:
|
|
|
|
http://www.paraview.org/Wiki/CMake_Cross_Compiling
|
|
|