Add Windows toolchain
This commit is contained in:
parent
4c1de8a405
commit
f6bddc111b
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
build/
|
build/
|
||||||
|
build.win/
|
||||||
.vscode/
|
.vscode/
|
||||||
.cache/
|
.cache/
|
||||||
|
2
dependencies/kekengine
vendored
2
dependencies/kekengine
vendored
@ -1 +1 @@
|
|||||||
Subproject commit da91e92124dec9a11b69bf3e63c4fa5b7d4781df
|
Subproject commit 2ff8debe8c607c90a9fa7df29577a24967b00cf9
|
20
toolchains/linux-mingw-windows.cmake
Normal file
20
toolchains/linux-mingw-windows.cmake
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
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_C_FLAGS -w)
|
||||||
|
set(CMAKE_CXX_FLAGS -w)
|
||||||
|
|
||||||
|
set(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32)
|
||||||
|
set(CMAKE_PREFIX_PATH /usr/x86_64-w64-mingw32)
|
||||||
|
set(ENV{PKG_CONFIG_PATH} "${CMAKE_PREFIX_PATH}/sys-root/mingw/lib/pkgconfig/")
|
||||||
|
link_directories(dependencies/kekengine/windows/lib/)
|
||||||
|
include_directories(dependencies/kekengine/windows/include/)
|
||||||
|
link_directories(dependencies/kekengine/dependencies/openvr/bin/win64)
|
||||||
|
|
||||||
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM BOTH)
|
||||||
|
|
||||||
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||||
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||||
|
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
|
Loading…
Reference in New Issue
Block a user