1This repository contains toolchains usable for crosscompiling with CMake. They 2are meant to be used on ArchLinux, but they can also (with some directory 3structure modifications) work on other systems. 4 5How to use them? 6================ 7 8Suppose you have sources which use CMake build system. Create new clean build 9directory, pick any toolchain and run cmake with your selected toolchain in it, 10e.g.: 11 12 mkdir build-win 13 cd build-win 14 cmake -DCMAKE_TOOLCHAIN_FILE=~/toolchains/archlinux/Qt4-mingw32.cmake .. 15 16Now you can compile (and install/package) the application as usual: 17 18 make -j3 19 make package 20 make me happy 21 22The result is application crosscompiled for given architecture and system (here 23it is Qt4 application for Windows). 24 25Dependencies for crosscompiling 26=============================== 27 28Every toolchain file has listed dependecies, which are needed for successful 29crosscompilation. Packages are available either in official ArchLinux 30repositories, in AUR or, for more exotic architectures, in [my own repository](http://github.com/mosra/archlinux). 31