Skip to content

Commit 09cad2e

Browse files
committed
feat(cmake): add windows-mingw-toolchain file
1 parent 45eafb9 commit 09cad2e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
set(CMAKE_SYSTEM_NAME Windows)
2+
set(CMAKE_SYSTEM_PROCESSOR x86_64)
3+
4+
set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
5+
set(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
6+
set(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres)
7+
8+
set(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32)
9+
10+
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
11+
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
12+
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
13+
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)

0 commit comments

Comments
 (0)