/[zanavi_public1]/navit/Toolchain/mingw32.cmake
ZANavi

Contents of /navit/Toolchain/mingw32.cmake

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 28 21:19:04 2011 UTC (8 years, 9 months ago) by zoff99
File size: 815 byte(s)
import files
1 SET(CMAKE_SYSTEM_NAME Windows)
2
3 FIND_PROGRAM(CMAKE_C_COMPILER NAMES i686-mingw32-gcc i586-mingw32-gcc i386-mingw32-gcc mingw32-gcc)
4 FIND_PROGRAM(CMAKE_CXX_COMPILER NAMES i686-mingw32-g++ i586-mingw32-gcc i386-mingw-gcc mingw32-g++)
5
6 FIND_PROGRAM(CMAKE_RC_COMPILER_INIT NAMES i686-mingw32-windres i586-mingw32-windres i386-mingw32-windres mingw32-windres windres.exe)
7
8 FIND_PROGRAM(CMAKE_AR NAMES i686-mingw32-ar i586-mingw32-ar i386-mingw32-ar mingw32-ar ar.exe)
9
10 IF (NOT CMAKE_FIND_ROOT_PATH)
11 EXECUTE_PROCESS(
12 COMMAND ${CMAKE_C_COMPILER} -print-sysroot
13 OUTPUT_VARIABLE CMAKE_FIND_ROOT_PATH
14 )
15 ENDIF(NOT CMAKE_FIND_ROOT_PATH)
16
17 set(PKG_CONFIG_EXECUTABLE "mingw32-pkg-config")
18
19 set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
20 set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
21 set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

   
Visit the ZANavi Wiki