Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # I got this file from http://www.openengine.dk/code/branches/wii-main/.
- # Then I made some changes.
- # Build by issuing:
- # build$ cmake -DCMAKE_TOOLCHAIN_FILE=../toolchain-ppc.cmake -DSTACK_DIRECTION=1 ..
- # this one is important
- SET(CMAKE_SYSTEM_NAME Linux)
- #this one not so much
- #SET(CMAKE_SYSTEM_VERSION 1)
- SET (DEVKITPPC $ENV{DEVKITPPC})
- SET (DEVKITPRO $ENV{DEVKITPRO})
- # specify the cross compiler
- SET(CMAKE_C_COMPILER ${DEVKITPPC}/bin/powerpc-eabi-gcc)
- SET(CMAKE_CXX_COMPILER ${DEVKITPPC}/bin/powerpc-eabi-g++)
- SET (WII true)
- # where is the target environment
- SET(CMAKE_FIND_ROOT_PATH ${DEVKITPPC} ${DEVKITPRO} ${DEVKITPPC}/powerpc-eabi ${DEVKITPRO}/libogc ${DEVKITPRO}/portlibs/ppc)
- SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
- SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
- SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement