File: mingw32.toolchain

package info (click to toggle)
sailcut 1.3.5-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 2,976 kB
  • ctags: 1,120
  • sloc: cpp: 12,369; python: 127; xml: 46; makefile: 7; sh: 7
file content (20 lines) | stat: -rw-r--r-- 827 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# specify system and cross compiler
set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_C_COMPILER   i586-mingw32msvc-gcc)
set(CMAKE_CXX_COMPILER i586-mingw32msvc-g++)
set(CMAKE_RC_COMPILER  i586-mingw32msvc-windres)
set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> <FLAGS> <DEFINES> --input-format rc --output-format coff -i <SOURCE> -o <OBJECT>")

# where is the target environment 
set(CMAKE_FIND_ROOT_PATH  /usr/i586-mingw32msvc)

# search for programs in the build host directories
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

# Qt 4
set(QT_HEADERS_DIR ${CMAKE_FIND_ROOT_PATH}/include/qt4)
set(QT_LIBRARY_DIR ${CMAKE_FIND_ROOT_PATH}/lib)
set(QT_PLUGINS_DIR ${CMAKE_FIND_ROOT_PATH}/lib/qt4)