mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 17:43:59 +02:00
* Building with BUILD_WITH_QT4 forces building with Qt4.
This commit is contained in:
@@ -62,7 +62,7 @@ ENDIF()
|
|||||||
|
|
||||||
# base string used in release and unstable builds
|
# base string used in release and unstable builds
|
||||||
SET( TOMAHAWK_VERSION ${TOMAHAWK_VERSION_MAJOR}.${TOMAHAWK_VERSION_MINOR}.${TOMAHAWK_VERSION_PATCH} )
|
SET( TOMAHAWK_VERSION ${TOMAHAWK_VERSION_MAJOR}.${TOMAHAWK_VERSION_MINOR}.${TOMAHAWK_VERSION_PATCH} )
|
||||||
SET(TOMAHAWK_VERSION_SHORT "${TOMAHAWK_VERSION}")
|
SET( TOMAHAWK_VERSION_SHORT "${TOMAHAWK_VERSION}" )
|
||||||
IF( TOMAHAWK_VERSION_RC )
|
IF( TOMAHAWK_VERSION_RC )
|
||||||
SET( TOMAHAWK_VERSION ${TOMAHAWK_VERSION}rc${TOMAHAWK_VERSION_RC} )
|
SET( TOMAHAWK_VERSION ${TOMAHAWK_VERSION}rc${TOMAHAWK_VERSION_RC} )
|
||||||
ENDIF()
|
ENDIF()
|
||||||
@@ -108,32 +108,35 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
find_package(Qt5Core QUIET)
|
if(NOT BUILD_WITH_QT4)
|
||||||
if(Qt5Core_DIR)
|
find_package(Qt5Core QUIET)
|
||||||
find_package(Qt5Widgets QUIET)
|
if(Qt5Core_DIR)
|
||||||
message(STATUS "Found Qt5! Be aware that Qt5-support is still experimental and not officially supported!")
|
find_package(Qt5Widgets QUIET)
|
||||||
|
message(STATUS "Found Qt5! Be aware that Qt5-support is still experimental and not officially supported!")
|
||||||
|
|
||||||
macro(qt_wrap_ui)
|
macro(qt_wrap_ui)
|
||||||
qt5_wrap_ui(${ARGN})
|
qt5_wrap_ui(${ARGN})
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
macro(qt_add_resources)
|
macro(qt_add_resources)
|
||||||
qt5_add_resources(${ARGN})
|
qt5_add_resources(${ARGN})
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
find_package(Qt5LinguistTools REQUIRED)
|
find_package(Qt5LinguistTools REQUIRED)
|
||||||
macro(qt_add_translation)
|
macro(qt_add_translation)
|
||||||
qt5_add_translation(${ARGN})
|
qt5_add_translation(${ARGN})
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
macro(setup_qt)
|
macro(setup_qt)
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
set(QT_RCC_EXECUTABLE "${Qt5Core_RCC_EXECUTABLE}")
|
set(QT_RCC_EXECUTABLE "${Qt5Core_RCC_EXECUTABLE}")
|
||||||
#FIXME: CrashReporter depends on deprecated QHttp
|
#FIXME: CrashReporter depends on deprecated QHttp
|
||||||
set(WITH_CRASHREPORTER OFF)
|
set(WITH_CRASHREPORTER OFF)
|
||||||
set(WITH_BREAKPAD OFF)
|
set(WITH_BREAKPAD OFF)
|
||||||
else()
|
endif()
|
||||||
|
endif()
|
||||||
|
if(NOT Qt5Core_DIR)
|
||||||
message(STATUS "Could not find Qt5, searching for Qt4 instead...")
|
message(STATUS "Could not find Qt5, searching for Qt4 instead...")
|
||||||
|
|
||||||
set(NEEDED_QT4_COMPONENTS "QtCore" "QtXml" "QtNetwork")
|
set(NEEDED_QT4_COMPONENTS "QtCore" "QtXml" "QtNetwork")
|
||||||
|
Reference in New Issue
Block a user