Advertisement
JoelSjogren

toolchain-ppc.cmake

Jun 23rd, 2013
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.83 KB | None | 0 0
  1. # I got this file from http://www.openengine.dk/code/branches/wii-main/.
  2. # Then I made some changes.
  3. # Build by issuing:
  4. # build$ cmake -DCMAKE_TOOLCHAIN_FILE=../toolchain-ppc.cmake -DSTACK_DIRECTION=1 ..
  5.  
  6. # this one is important
  7. SET(CMAKE_SYSTEM_NAME Linux)
  8. #this one not so much
  9. #SET(CMAKE_SYSTEM_VERSION 1)
  10.  
  11. SET (DEVKITPPC $ENV{DEVKITPPC})
  12. SET (DEVKITPRO $ENV{DEVKITPRO})
  13.  
  14. # specify the cross compiler
  15. SET(CMAKE_C_COMPILER   ${DEVKITPPC}/bin/powerpc-eabi-gcc)
  16. SET(CMAKE_CXX_COMPILER ${DEVKITPPC}/bin/powerpc-eabi-g++)
  17.  
  18. SET (WII true)
  19.  
  20. # where is the target environment
  21. SET(CMAKE_FIND_ROOT_PATH  ${DEVKITPPC} ${DEVKITPRO} ${DEVKITPPC}/powerpc-eabi ${DEVKITPRO}/libogc ${DEVKITPRO}/portlibs/ppc)
  22. SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  23. SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
  24. SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement