1
0

CMakeWindows.txt 717 B

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