diff options
author | Matthew Gregan <[email protected]> | 2016-09-22 01:40:55 +1200 |
---|---|---|
committer | Matthew Gregan <[email protected]> | 2016-10-12 17:06:10 +1300 |
commit | 0aea9e0438cabfe6703d587547c3a74e11380489 (patch) | |
tree | e676269f45f44b69176207df0e1c918fcac119b1 /cmake | |
parent | 22557d466eceb6ff6ba70ae30d2dcd87648cde0b (diff) | |
download | cubeb-0aea9e0438cabfe6703d587547c3a74e11380489.tar.gz cubeb-0aea9e0438cabfe6703d587547c3a74e11380489.zip |
Replace autotools build system with CMake.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/toolchain-cross-mingw.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cmake/toolchain-cross-mingw.cmake b/cmake/toolchain-cross-mingw.cmake new file mode 100644 index 0000000..385d790 --- /dev/null +++ b/cmake/toolchain-cross-mingw.cmake @@ -0,0 +1,14 @@ +SET(CMAKE_SYSTEM_NAME Windows) + +set(COMPILER_PREFIX "i686-w64-mingw32") + +find_program(CMAKE_RC_COMPILER NAMES ${COMPILER_PREFIX}-windres) +find_program(CMAKE_C_COMPILER NAMES ${COMPILER_PREFIX}-gcc) +find_program(CMAKE_CXX_COMPILER NAMES ${COMPILER_PREFIX}-g++) + +SET(CMAKE_FIND_ROOT_PATH /usr/${COMPILER_PREFIX}) + +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) + |