toolchain.win64.cmake 605 B

123456789101112131415
  1. # Name of the target platform
  2. SET(CMAKE_SYSTEM_NAME Windows)
  3. # Version of the system
  4. SET(CMAKE_SYSTEM_VERSION 1)
  5. # specify the cross compiler
  6. SET(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
  7. SET(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
  8. SET(CMAKE_RC_COMPILER_ENV_VAR "RC")
  9. SET(CMAKE_RC_COMPILER "")
  10. SET(CMAKE_SHARED_LINKER_FLAGS
  11. "-fdata-sections -ffunction-sections -Wl,--enable-stdcall-fixup -static-libgcc -static -lpthread" CACHE STRING "" FORCE)
  12. SET(CMAKE_EXE_LINKER_FLAGS
  13. "-fdata-sections -ffunction-sections -Wl,--enable-stdcall-fixup -static-libgcc -static -lpthread" CACHE STRING "" FORCE)