toolchain.cmake 576 B

12345678910111213141516171819
  1. set(CMAKE_SYSTEM_NAME Windows)
  2. set(CMAKE_SYSTEM_PROCESSOR x86_64)
  3. set(CMAKE_SYSTEM_VERSION 6.1)
  4. set(triple x86_64-w64-mingw32)
  5. set(CMAKE_C_COMPILER ${triple}-gcc)
  6. set(CMAKE_CXX_COMPILER ${triple}-g++)
  7. set(CMAKE_RC_COMPILER ${triple}-windres)
  8. set(CMAKE_RANLIB ${triple}-gcc-ranlib)
  9. set(CMAKE_AR ${triple}-gcc-ar)
  10. set(CMAKE_SYSROOT /opt/ct-ng/${triple}/sysroot)
  11. set(CMAKE_FIND_ROOT_PATH /opt/ct-ng /opt/ct-ng/${triple}/sysroot /opt/ffbuild)
  12. set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  13. set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
  14. set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)