File: Toolchain-i686-mingw32.cmake.sample

package info (click to toggle)
libosl 0.8.0-1.4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 7,208 kB
  • ctags: 13,120
  • sloc: cpp: 114,344; ruby: 1,290; ansic: 915; makefile: 430; perl: 309; sh: 35
file content (12 lines) | stat: -rw-r--r-- 448 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
set(CMAKE_SYSTEM_NAME Windows)
 
# specify the cross compiler
set(CMAKE_C_COMPILER /usr/bin/i686-w64-mingw32-gcc)
set(CMAKE_CXX_COMPILER /usr/bin/i686-w64-mingw32-g++)
set(CMAKE_RC_COMPILER /usr/bin/i686-w64-mingw32-windres)
 
# set PKG_CONFIG_PATH for MinGW Cross Compile Environment
#set(ENV{PKG_CONFIG_PATH} /usr/i586-mingw32msvc/sys-root/mingw/lib/pkgconfig)
 
# where is the target environment 
set(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32)