mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00

fix package warning 1. replace deprecated QPalette::ColorRole Background and Foreground 2. replace deprecated Qt::SystemLocaleLongDate 3. replace deprecated QMouseEvent constructor 4. CMakeLists.txt rectification log: remove build warnings
30 lines
932 B
CMake
30 lines
932 B
CMake
|
|
set(PLUGIN_NAME "show-desktop")
|
|
|
|
project(${PLUGIN_NAME})
|
|
|
|
# Sources files
|
|
file(GLOB SRCS "*.h" "*.cpp" "../../widgets/tipswidget.h" "../../widgets/tipswidget.cpp"
|
|
"../../frame/util/imageutil.h" "../../frame/util/imageutil.cpp")
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
find_package(Qt5Widgets REQUIRED)
|
|
find_package(Qt5Svg REQUIRED)
|
|
find_package(Qt5DBus REQUIRED)
|
|
find_package(DtkWidget REQUIRED)
|
|
|
|
pkg_check_modules(XCB_LIBS REQUIRED IMPORTED_TARGET xcursor)
|
|
|
|
add_definitions("${QT_DEFINITIONS} -DQT_PLUGIN")
|
|
add_library(${PLUGIN_NAME} SHARED ${SRCS})
|
|
set_target_properties(${PLUGIN_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ../)
|
|
target_include_directories(${PLUGIN_NAME} PUBLIC ${DtkWidget_INCLUDE_DIRS} ../../interfaces)
|
|
target_link_libraries(${PLUGIN_NAME} PRIVATE
|
|
${DtkWidget_LIBRARIES}
|
|
PkgConfig::XCB_LIBS
|
|
Qt5::Widgets
|
|
Qt5::DBus
|
|
Qt5::Svg)
|
|
|
|
install(TARGETS ${PLUGIN_NAME} LIBRARY DESTINATION lib/dde-dock/plugins)
|