aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/kdenotify/CMakeLists.txt
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-11-25 18:00:06 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-11-25 18:00:06 +0000
commit8453224119a4c5ff7d47d9cd4924d0b1ccb99b3a (patch)
tree15d339b62e98d5858a57aa787334e14f0e2f0ad7 /src/plugins/General/kdenotify/CMakeLists.txt
parent6fc05db7c6de9a51beba754f12ff4ac32859977d (diff)
downloadqmmp-8453224119a4c5ff7d47d9cd4924d0b1ccb99b3a.tar.gz
qmmp-8453224119a4c5ff7d47d9cd4924d0b1ccb99b3a.tar.bz2
qmmp-8453224119a4c5ff7d47d9cd4924d0b1ccb99b3a.zip
copy 1.2 branch to trunk
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7772 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/kdenotify/CMakeLists.txt')
-rw-r--r--src/plugins/General/kdenotify/CMakeLists.txt31
1 files changed, 6 insertions, 25 deletions
diff --git a/src/plugins/General/kdenotify/CMakeLists.txt b/src/plugins/General/kdenotify/CMakeLists.txt
index e24ae1711..abfab62d0 100644
--- a/src/plugins/General/kdenotify/CMakeLists.txt
+++ b/src/plugins/General/kdenotify/CMakeLists.txt
@@ -1,22 +1,5 @@
project(libkdenotify)
-
-SET (QT_USE_QTDBUS TRUE)
-
-INCLUDE(FindQt4)
-
-include(${QT_USE_FILE})
-
-# 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})
# libqmmpui & libqmmp
@@ -32,25 +15,23 @@ SET(libkdenotify_SRCS
SET(libkdenotify_RCCS translations/translations.qrc)
-QT4_ADD_RESOURCES(libkdenotify_RCC_SRCS ${libkdenotify_RCCS})
+QT5_ADD_RESOURCES(libkdenotify_RCC_SRCS ${libkdenotify_RCCS})
# user interface
SET(libkdenotify_UIS
settingsdialog.ui
)
-QT4_WRAP_UI(libkdenotify_UIS_H ${libkdenotify_UIS})
+QT5_WRAP_UI(libkdenotify_UIS_H ${libkdenotify_UIS})
-# QT4_WRAP_UI(libkdenotify_UIS_H ${libkdenotify_UIS})
+# QT5_WRAP_UI(libkdenotify_UIS_H ${libkdenotify_UIS})
# Don't forget to include output directory, otherwise
# the UI file won't be wrapped!
include_directories(${CMAKE_CURRENT_BINARY_DIR})
ADD_LIBRARY(kdenotify MODULE ${libkdenotify_SRCS} ${libkdenotify_RCC_SRCS} ${libkdenotify_UIS_H})
add_dependencies(kdenotify qmmpui)
-target_link_libraries(kdenotify ${QT_LIBRARIES} qmmpui libqmmp)
+target_link_libraries(kdenotify Qt5::Widgets Qt5::DBus -lqmmpui -lqmmp)
install(TARGETS kdenotify DESTINATION ${LIB_DIR}/qmmp/General)
-IF(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
- install(FILES images/empty_cover.png DESTINATION share/qmmp/images)
- install(FILES images/app_icon.png DESTINATION share/qmmp/images)
-ENDIF()
+install(FILES images/empty_cover.png DESTINATION share/qmmp/images)
+install(FILES images/app_icon.png DESTINATION share/qmmp/images)