Update ReadMe.md
[qtwebkit.git] / ToolchainMIPS.cmake
blob947df20dbec3f969b7f6db5903f8018b118586d4
1 include(CMakeForceCompiler)
3 # this one is important
4 set(CMAKE_SYSTEM_NAME Linux)
5 #this one not so much
6 set(CMAKE_SYSTEM_VERSION 1)
8 set(CMAKE_SYSTEM_PROCESSOR mips)
11 # stbgcc toolchain
13 set(STBGCC_PATH /opt/toolchains/stbgcc-4.8-1.2)
16 # specify the cross compiler
18 set(CMAKE_C_COMPILER   ${STBGCC_PATH}/bin-ccache/mipsel-linux-gcc)
19 set(CMAKE_CXX_COMPILER ${STBGCC_PATH}/bin-ccache/mipsel-linux-g++)
21 # where is the target environment
22 set(CMAKE_FIND_ROOT_PATH ${STBGCC_PATH}/target ${EXTRA_ROOT_PATH})
24 # search for programs in the build host directories
25 set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
26 # for libraries and headers in the target directories
27 set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
28 set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)