Skip to content

Instantly share code, notes, and snippets.

View Borwe's full-sized avatar
🇰🇪
Kenyan

Brian Orwe Borwe

🇰🇪
Kenyan
View GitHub Profile
@Borwe
Borwe / mingw-w64-x86_64.cmake
Created July 9, 2021 10:51 — forked from peterspackman/mingw-w64-x86_64.cmake
cmake toolchain file for mingw-w64 x86_64 builds on Ubuntu
# Sample toolchain file for building for Windows from an Ubuntu Linux system.
#
# Typical usage:
# *) install cross compiler: `sudo apt-get install mingw-w64`
# *) cd build
# *) cmake -DCMAKE_TOOLCHAIN_FILE=~/mingw-w64-x86_64.cmake ..
set(CMAKE_SYSTEM_NAME Windows)
set(TOOLCHAIN_PREFIX x86_64-w64-mingw32)