forked from Hartmut/paradiso
- add instructions for cross-compilation - add utility function for Windows and Linux executable path
624 B
624 B
Cross Compiling with MinGW 64
As I do not own any Windows machine, builds on Windows rely on MinGW which is install with the ArchLinux package group mingw-64-toolchain
(contains MinGW64 Crosscompilation parts)
Install MinGW
pacman -S mingw-w64-toolchain
Create Build
The root folder adds a .gitignore
rule to leave out everything build*
mkdir -p build_w64
cd build_w64
Configure
cmake . -DCMAKE_TOOLCHAIN_FILE=../etc/cmake/mingw64-toolchain.cmake
Build
cmake --build .