mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-14 18:14:50 +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,8 +108,9 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
find_package(Qt5Core QUIET)
|
if(NOT BUILD_WITH_QT4)
|
||||||
if(Qt5Core_DIR)
|
find_package(Qt5Core QUIET)
|
||||||
|
if(Qt5Core_DIR)
|
||||||
find_package(Qt5Widgets QUIET)
|
find_package(Qt5Widgets QUIET)
|
||||||
message(STATUS "Found Qt5! Be aware that Qt5-support is still experimental and not officially supported!")
|
message(STATUS "Found Qt5! Be aware that Qt5-support is still experimental and not officially supported!")
|
||||||
|
|
||||||
@@ -133,7 +134,9 @@ if(Qt5Core_DIR)
|
|||||||
#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