87443a6b8f
Change-Id: I9101fd87d2eb5ef56c4441b4c46f35e85aff04d8
24 lines
908 B
CMake
24 lines
908 B
CMake
## Copyright (c) 2016 The WebM project authors. All Rights Reserved.
|
|
##
|
|
## Use of this source code is governed by a BSD-style license
|
|
## that can be found in the LICENSE file in the root of the source
|
|
## tree. An additional intellectual property rights grant can be found
|
|
## in the file PATENTS. All contributing project authors may
|
|
## be found in the AUTHORS file in the root of the source tree.
|
|
|
|
set(MINGW_PREFIX "i686-w64-mingw32" CACHE STRING "MinGW cross compiler")
|
|
|
|
# Target OS name.
|
|
set(CMAKE_SYSTEM_NAME Windows)
|
|
|
|
# Cross compiler values.
|
|
set(CMAKE_C_COMPILER ${MINGW_PREFIX}-gcc)
|
|
set(CMAKE_CXX_COMPILER ${MINGW_PREFIX}-g++)
|
|
set(CMAKE_RC_COMPILER ${MINGW_PREFIX}-windres)
|
|
|
|
# Tell CMake not to look too hard for things; we want the target toolchain
|
|
# defaults.
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|