mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-18 03:41:27 +02:00
qt5: cmake: allow building Tomahawk against Qt4 and Qt5
This commit is contained in:
10
thirdparty/qxt/qxtweb-standalone/CMakeLists.txt
vendored
10
thirdparty/qxt/qxtweb-standalone/CMakeLists.txt
vendored
@@ -1,15 +1,11 @@
|
||||
PROJECT(libqxtweb-standalone)
|
||||
CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR)
|
||||
SET(CMAKE_VERBOSE_MAKEFILE ON)
|
||||
SET(CMAKE_INSTALL_PREFIX ".")
|
||||
|
||||
IF( ${CMAKE_VERSION} VERSION_GREATER 2.8.3 )
|
||||
CMAKE_POLICY(SET CMP0017 NEW)
|
||||
ENDIF( ${CMAKE_VERSION} VERSION_GREATER 2.8.3 )
|
||||
|
||||
FIND_PACKAGE( Qt4 4.6.0 COMPONENTS QtCore QtNetwork REQUIRED )
|
||||
set(QT_USE_QTNETWORK TRUE)
|
||||
include( ${QT_USE_FILE} )
|
||||
setup_qt()
|
||||
|
||||
SET(qxtweb "qxtweb")
|
||||
|
||||
@@ -84,7 +80,9 @@ ENDIF()
|
||||
|
||||
|
||||
target_link_libraries( qxtweb-standalone
|
||||
${QT_LIBRARIES}
|
||||
${QT_LIBRARIES}
|
||||
)
|
||||
|
||||
qt5_use_modules(qxtweb-standalone Network)
|
||||
|
||||
set_target_properties(qxtweb-standalone PROPERTIES AUTOMOC TRUE)
|
||||
|
Reference in New Issue
Block a user