waterjuice

mips.cmake

Dec 2nd, 2017
143
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # toolchain for compiling Linux for MIPS
  2.  
  3. set(CMAKE_C_COMPILER mips-linux-gnu-gcc)
  4. set(CMAKE_CXX_COMPILER mips-linux-gnu-g++)
  5. set(CMAKE_SYSTEM_NAME Linux)
  6. set(CMAKE_SYSTEM_PROCESSOR mips)
  7.  
  8. # Compiler settings
  9. set( CMAKE_C_FLAGS "-Wall -Werror -Wno-deprecated-declarations" CACHE STRING "" )
  10. set( CMAKE_C_FLAGS_DEBUG "-D_DEBUG -g" CACHE STRING "" )
  11. set( CMAKE_C_FLAGS_RELEASE "-DNDEBUG -O3" CACHE STRING "" )
  12.  
  13. set( CMAKE_CXX_FLAGS ${CMAKE_C_FLAGS} CACHE STRING "" )
  14. set( CMAKE_CXX_FLAGS_DEBUG ${CMAKE_C_FLAGS_DEBUG} CACHE STRING "" )
  15. set( CMAKE_CXX_FLAGS_RELEASE ${CMAKE_C_FLAGS_RELEASE} CACHE STRING "" )
  16.  
  17.  
  18. if (NOT CMAKE_BUILD_TYPE)
  19. message(STATUS "No build type selected, default to Debug")
  20. set( CMAKE_BUILD_TYPE "Debug" CACHE STRING "" )
  21. endif()
  22.  
  23. # Set install location
  24. set( CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/bin/${CMAKE_BUILD_TYPE}/LinuxMips" CACHE STRING "")
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×