24 lines
758 B
CMake
24 lines
758 B
CMake
set(CMAKE_SYSTEM_NAME Windows-MinGW)
|
|
set(CMAKE_SYSTEM_PROCESSOR armv7)
|
|
|
|
set(triple ${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32)
|
|
|
|
set(CMAKE_C_COMPILER ${triple}-clang)
|
|
set(CMAKE_C_COMPILER_TARGET ${triple})
|
|
set(CMAKE_CXX_COMPILER ${triple}-clang++)
|
|
set(CMAKE_CXX_COMPILER_TARGET ${triple})
|
|
|
|
set(CMAKE_RC_COMPILER ${triple}-windres)
|
|
|
|
# For make package use.
|
|
set(CMAKE_OBJDUMP ${triple}-objdump)
|
|
|
|
# here is the target environment located
|
|
#SET(CMAKE_FIND_ROOT_PATH ${MPATH})
|
|
|
|
# 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 NEVER)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) |