FFmpeg-Builds/images/base-win64/toolchain.cmake

18 lines
546 B
CMake
Raw Normal View History

2020-09-03 20:49:43 +00:00
set(CMAKE_SYSTEM_NAME Windows)
2020-09-06 16:28:49 +00:00
set(CMAKE_SYSTEM_PROCESSOR x86_64)
2020-09-03 20:49:43 +00:00
set(triple x86_64-w64-mingw32)
2020-09-03 20:49:43 +00:00
set(CMAKE_C_COMPILER ${triple}-gcc)
set(CMAKE_CXX_COMPILER ${triple}-g++)
set(CMAKE_RC_COMPILER ${triple}-windres)
set(CMAKE_RANLIB ${triple}-gcc-ranlib)
set(CMAKE_AR ${triple}-gcc-ar)
set(CMAKE_SYSROOT /opt/ct-ng/${triple}/sysroot)
set(CMAKE_FIND_ROOT_PATH /opt/ct-ng /opt/ct-ng/${triple}/sysroot /opt/ffbuild)
2020-09-03 20:49:43 +00:00
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)