diff options
Diffstat (limited to 'src/plugins/Transports/http/CMakeLists.txt')
| -rw-r--r-- | src/plugins/Transports/http/CMakeLists.txt | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/src/plugins/Transports/http/CMakeLists.txt b/src/plugins/Transports/http/CMakeLists.txt index efd40d1e4..5ca267c5e 100644 --- a/src/plugins/Transports/http/CMakeLists.txt +++ b/src/plugins/Transports/http/CMakeLists.txt @@ -1,20 +1,7 @@ project(libhttp) -# qt plugin -ADD_DEFINITIONS( -Wall ) -ADD_DEFINITIONS(${QT_DEFINITIONS}) -ADD_DEFINITIONS(-DQT_PLUGIN) -ADD_DEFINITIONS(-DQT_NO_DEBUG) -ADD_DEFINITIONS(-DQT_SHARED) -ADD_DEFINITIONS(-DQT_THREAD) - include_directories(${CMAKE_CURRENT_BINARY_DIR}) -SET(QT_INCLUDES - ${QT_INCLUDES} - ${CMAKE_CURRENT_BINARY_DIR}/../../../ -) - # libqmmp include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../../) link_directories(${CMAKE_CURRENT_BINARY_DIR}/../../../qmmp) @@ -41,13 +28,13 @@ SET(libhttp_SRCS # resources SET(libhttp_RCCS translations/translations.qrc) -QT4_ADD_RESOURCES(libhttp_RCC_SRCS ${libhttp_RCCS}) +QT5_ADD_RESOURCES(libhttp_RCC_SRCS ${libhttp_RCCS}) # user interface SET(libhttp_UIS settingsdialog.ui ) -QT4_WRAP_UI(libhttp_UIS_H ${libhttp_UIS}) +QT5_WRAP_UI(libhttp_UIS_H ${libhttp_UIS}) # Don't forget to include output directory, otherwise @@ -58,9 +45,9 @@ IF(CURL_FOUND) ADD_LIBRARY(http MODULE ${libhttp_SRCS} ${libhttp_UIS_H} ${libhttp_RCC_SRCS}) IF(USE_ENCA AND ENCA_FOUND) -target_link_libraries(http ${QT_LIBRARIES} libqmmp ${CURL_LDFLAGS} ${CURL_CFLAGS} ${ENCA_LDFLAGS} ${ENCA_CFLAGS}) +target_link_libraries(http Qt5::Widgets -lqmmp ${CURL_LDFLAGS} ${CURL_CFLAGS} ${ENCA_LDFLAGS} ${ENCA_CFLAGS}) ELSE(USE_ENCA AND ENCA_FOUND) -target_link_libraries(http ${QT_LIBRARIES} libqmmp ${CURL_LDFLAGS}) +target_link_libraries(http Qt5::Widgets -lqmmp ${CURL_LDFLAGS}) ENDIF(USE_ENCA AND ENCA_FOUND) add_dependencies(http qmmp) |
