Skip to content

Commit

Permalink
mingw: Add cmake snippet for easier setup
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Collins <[email protected]>
  • Loading branch information
benmcollins committed Feb 13, 2025
1 parent 4ea993a commit 2b8c1fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/mingw-w64.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# cmake -DCMAKE_TOOLCHAIN_FILE=mingw-w64.cmake
set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
set(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
set(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres)

0 comments on commit 2b8c1fc

Please sign in to comment.