mingw32msvc cmake toolchain
This commit is contained in:
parent
8e79ec5555
commit
ef065cbb74
|
@ -10,7 +10,7 @@ FIND_LIBRARY(LUA_LIBRARY NAMES liblua51.a liblua5.1.a liblua-5.1.a liblua.a lua5
|
||||||
IF(LUA_LIBRARY)
|
IF(LUA_LIBRARY)
|
||||||
IF(UNIX AND NOT APPLE)
|
IF(UNIX AND NOT APPLE)
|
||||||
FIND_LIBRARY(LUA_MATH_LIBRARY m)
|
FIND_LIBRARY(LUA_MATH_LIBRARY m)
|
||||||
SET( LUA_LIBRARIES "${LUA_LIBRARY};${LUA_MATH_LIBRARY}")
|
SET(LUA_LIBRARIES "${LUA_LIBRARY};${LUA_MATH_LIBRARY}")
|
||||||
ELSE(UNIX AND NOT APPLE)
|
ELSE(UNIX AND NOT APPLE)
|
||||||
SET(LUA_LIBRARIES "${LUA_LIBRARY}")
|
SET(LUA_LIBRARIES "${LUA_LIBRARY}")
|
||||||
ENDIF(UNIX AND NOT APPLE)
|
ENDIF(UNIX AND NOT APPLE)
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
SET(CMAKE_SYSTEM_NAME Windows)
|
||||||
|
SET(CMAKE_C_COMPILER i586-mingw32msvc-gcc)
|
||||||
|
SET(CMAKE_CXX_COMPILER i586-mingw32msvc-g++)
|
||||||
|
SET(CMAKE_RC_COMPILER i586-mingw32msvc-windres)
|
||||||
|
SET(CMAKE_FIND_ROOT_PATH /usr/i586-mingw32msvc)
|
||||||
|
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||||
|
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||||
|
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
Loading…
Reference in New Issue