Skip to content

Instantly share code, notes, and snippets.

View zepinto's full-sized avatar

Jose Pinto zepinto

View GitHub Profile
@zepinto
zepinto / mingw-w64-x86_64.cmake
Last active May 21, 2020 15:35 — forked from peterspackman/mingw-w64-x86_64.cmake
cmake toolchain file for mingw-w64 x86_64 builds on Ubuntu
# 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)