1234567891011121314151617181920212223242526 |
- # This still doesn't work but it's here for hacking on.
- # To try it out:
- #
- # sudo apt-get install gcc-mingw32
- # mkdir buildw32 && cd buildw32
- # cmake -DCMAKE_TOOLCHAIN_FILE=../CMakeWindows.txt ..
- # make
- #
- # Fix errors as they appear :)
- #
- set(TOOLCHAIN_PREFIX i586-mingw32msvc)
- # the name of the target operating system
- SET(CMAKE_SYSTEM_NAME Windows)
- # which compilers to use for C and C++
- SET(CMAKE_C_COMPILER "${TOOLCHAIN_PREFIX}-gcc")
- SET(CMAKE_CXX_COMPILER "${TOOLCHAIN_PREFIX}-g++")
- SET(CMAKE_RC_COMPILER "${TOOLCHAIN_PREFIX}-windres")
- # here is the target environment located
- SET(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32)
- # nacl needs this define for some of it's tests.
- add_definitions("-D random=rand")
|