This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sample toolchain file for creating Windows installer. | |
# | |
# Typical usage: | |
# 1) install cross compiler and packager: `sudo apt-get install mingw-w64 nsis` | |
# 2) cd <path/to/build/folder> | |
# 3) cmake -DCMAKE_TOOLCHAIN_FILE=~/mingw-w64-x86_64.cmake <path/to/source/folder> | |
# 4) make -j<cores> | |
# 5) make package | |
set(CMAKE_SYSTEM_NAME Windows) |