mirror of
https://github.com/GerbilSoft/rvthtool.git
synced 2025-06-18 11:35:33 -04:00

- Changed several macros to functions, e.g. C/C++ language version checks. - Improved CPU architecture detection. - Improved LFS detection on some *BSD platforms. - Preliminary support for Windows on ARM. - Added toolchain files for i686 and x86_64 MinGW-w64.
21 lines
691 B
CMake
21 lines
691 B
CMake
SET(HOST_SYSTEM i686-w64-mingw32)
|
|
|
|
# the name of the target operating system
|
|
SET(CMAKE_SYSTEM_NAME Windows)
|
|
SET(CMAKE_SYSTEM_PROCESSOR i686)
|
|
|
|
# which compilers to use for C and C++
|
|
SET(CMAKE_C_COMPILER ${HOST_SYSTEM}-gcc)
|
|
SET(CMAKE_CXX_COMPILER ${HOST_SYSTEM}-g++)
|
|
SET(CMAKE_RC_COMPILER ${HOST_SYSTEM}-windres)
|
|
|
|
# here is the target environment located
|
|
SET(CMAKE_FIND_ROOT_PATH /usr/${HOST_SYSTEM})
|
|
|
|
# adjust the default behaviour of the FIND_XXX() commands:
|
|
# search headers and libraries in the target environment, search
|
|
# programs in the host environment
|
|
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM BOTH)
|
|
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|