MuseScore/build/mingw32.cmake

63 lines
1.9 KiB
CMake

#
# toolchain file
#
set (CMAKE_SYSTEM_NAME "Windows")
set (CROSS /home/ws/mingw)
set (CROSSQT ${CROSS}/Qt/2010.05-rc1/qt)
set (CMAKE_C_COMPILER ${CROSS}/bin/amd64-mingw32msvc-gcc)
set (CMAKE_CXX_COMPILER ${CROSS}/bin/amd64-mingw32msvc-gcc)
set (CMAKE_STRIP ${CROSS}/bin/amd64-mingw32msvc-strip)
set (CMAKE_FIND_ROOT_PATH ${CROSS}/amd64-mingw32msvc)
# adjust the default behaviour of the FIND_XXX() commands:
# search headers and libraries in the target environment, search
# programs in the host environment
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
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_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 "/usr/bin/rcc")
set (QT_QTCORE_LIBRARY "mops")
set (QT_WRC_EXECUTABLE wrc)
set (QT_WINE_EXECUTABLE wine)
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}
)
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)