PageRenderTime 122ms CodeModel.GetById 61ms app.highlight 2ms RepoModel.GetById 58ms app.codeStats 0ms

/admin/win/Toolchain-mingw32-openSUSE.cmake

http://github.com/tomahawk-player/tomahawk
CMake | 38 lines | 21 code | 10 blank | 7 comment | 0 complexity | 6190a7d0850e1ded5f6dd7192d5d2347 MD5 | raw file
 1SET(MINGW_PREFIX  "i686-w64-mingw32")
 2
 3# this one is important
 4SET(CMAKE_SYSTEM_NAME Windows)
 5
 6
 7# specify the cross compiler
 8SET(CMAKE_C_COMPILER ${MINGW_PREFIX}-gcc)
 9SET(CMAKE_CXX_COMPILER ${MINGW_PREFIX}-g++)
10SET(CMAKE_RC_COMPILER /usr/bin/${MINGW_PREFIX}-windres CACHE FILEPATH "windres")
11SET(CMAKE_AR /usr/bin/${MINGW_PREFIX}-ar CACHE FILEPATH "ar")
12
13
14# where is the target environment containing libraries
15SET(CMAKE_FIND_ROOT_PATH  /usr/${MINGW_PREFIX}/sys-root/mingw)
16SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY  ONLY)
17SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE  ONLY)
18SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM  NEVER)
19
20
21## configure qt variables
22# generic
23SET(QMAKESPEC               win32-g++-cross)
24
25# dirs
26SET(QT_LIBRARY_DIR          /usr/${MINGW_PREFIX}/bin)
27SET(QT_PLUGINS_DIR          ${CMAKE_FIND_ROOT_PATH}/lib/qt4/plugins)
28SET(QT_MKSPECS_DIR          ${CMAKE_FIND_ROOT_PATH}/share/qt4/mkspecs)
29SET(QT_QT_INCLUDE_DIR       ${CMAKE_FIND_ROOT_PATH}/include)
30
31SET(QT_QMAKE_EXECUTABLE     /usr/bin/${MINGW_PREFIX}-qmake CACHE FILEPATH "qmake" )
32SET(QT_MOC_EXECUTABLE       /usr/bin/${MINGW_PREFIX}-moc CACHE FILEPATH "moc")
33SET(QT_RCC_EXECUTABLE       /usr/bin/${MINGW_PREFIX}-rcc CACHE FILEPATH "rcc")
34SET(QT_UIC_EXECUTABLE       /usr/bin/${MINGW_PREFIX}-uic CACHE FILEPATH "uic")
35SET(QT_LRELEASE_EXECUTABLE  /usr/bin/${MINGW_PREFIX}-lrelease CACHE FILEPATH "lrelease")
36
37# phonon -_-
38SET(Automoc4_DIR	    "/usr/lib64/automoc4/")