MuseScore/build/mingw32.mingw.cmake

58 lines
1.8 KiB
CMake

#
# toolchain file for windows on windows
#
set (CMAKE_SYSTEM_NAME "Windows")
set (CROSS C:/QtSDK/mingw)
set (CROSSQT C:/QtSDK/Desktop/Qt/4.8.0/mingw)
set (CMAKE_C_COMPILER ${CROSS}/bin/gcc.exe)
set (CMAKE_CXX_COMPILER ${CROSS}/bin/g++.exe)
set (CMAKE_STRIP ${CROSS}/bin/strip.exe)
set (CMAKE_FIND_ROOT_PATH ${CROSS})
set (QT_INCLUDE_DIR ${CROSSQT}/include)
set (QT_QT_INCLUDE_DIR ${CROSSQT}/include/Qt)
set (QT_QTCORE_INCLUDE_DIR ${CROSSQT}/include/QtCore)
set (QT_QTXML_INCLUDE_DIR ${CROSSQT}/include/QtXml)
set (QT_QTXMLPATTERNS_INCLUDE_DIR ${CROSSQT}/include/QtXmlPatterns)
set (QT_QTGUI_INCLUDE_DIR ${CROSSQT}/include/QtGui)
set (QT_QTNETWORK_INCLUDE_DIR ${CROSSQT}/include/QtNetwork)
set (QT_QTUITOOLS_INCLUDE_DIR ${CROSSQT}/include/QtUiTools)
set (QT_QTSCRIPT_INCLUDE_DIR ${CROSSQT}/include/QtScript)
set (QT_QTWEBKIT_INCLUDE_DIR ${CROSSQT}/include/QtWebkit)
set (QT_LIBRARY_DIR ${CROSSQT}/lib)
set (QT_MOC_EXECUTABLE "${CROSSQT}/bin/moc.exe")
set (QT_UIC_EXECUTABLE "${CROSSQT}/bin/uic.exe")
## set (QT_UIC_EXECUTABLE "/usr/bin/uic-qt4")
set (QT_RCC_EXECUTABLE "${CROSSQT}/bin/rcc")
set (QT_QTCORE_LIBRARY "mops")
set (QT_WRC_EXECUTABLE wrc.bat)
set (QT_WINE_EXECUTABLE wine.bat)
set (QT_INCLUDES ${QT_INCLUDE_DIR} ${QT_QT_INCLUDE_DIR}
${QT_QTCORE_INCLUDE_DIR} ${QT_QTXML_INCLUDE_DIR} ${QT_GUI_INCLUDE_DIR}
${QT_QTNETWORK_INCLUDE_DIR} ${QT_QTWEBKIT_INCLUDE_DIR}
${QT_QTXMLPATTERNS_INCLUDE_DIR}
)
set (QT_mingw_LIBRARIES
QtSvg4
QtGui4
QtCore4
QtXml4
QtNetwork4
QtWebKit4
QtXmlPatterns4
QtDeclarative4
)
# Qt3Support4
set (WIN32 ON)
set (MINGW ON)
set (CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS)