2019-03-26 17:14:29 +08:00
|
|
|
|
|
|
|
set(PLUGIN_NAME "overlay-warning")
|
|
|
|
|
|
|
|
project(${PLUGIN_NAME})
|
|
|
|
|
|
|
|
# Sources files
|
2022-11-02 05:29:15 +00:00
|
|
|
file(GLOB_RECURSE SRCS "*.h" "*.cpp" "../../widgets/tipswidget.h" "../../widgets/tipswidget.cpp")
|
2019-03-26 17:14:29 +08:00
|
|
|
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
|
|
find_package(Qt5Widgets REQUIRED)
|
|
|
|
find_package(Qt5Svg REQUIRED)
|
|
|
|
find_package(Qt5DBus REQUIRED)
|
|
|
|
find_package(DtkWidget REQUIRED)
|
|
|
|
|
|
|
|
add_definitions("${QT_DEFINITIONS} -DQT_PLUGIN")
|
|
|
|
add_library(${PLUGIN_NAME} SHARED ${SRCS} overlay-warning.qrc)
|
|
|
|
set_target_properties(${PLUGIN_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ../)
|
|
|
|
target_include_directories(${PLUGIN_NAME} PUBLIC ${DtkWidget_INCLUDE_DIRS}
|
|
|
|
${Qt5DBus_INCLUDE_DIRS}
|
|
|
|
../../interfaces)
|
|
|
|
target_link_libraries(${PLUGIN_NAME} PRIVATE
|
|
|
|
${DtkWidget_LIBRARIES}
|
|
|
|
${Qt5Widgets_LIBRARIES}
|
|
|
|
${Qt5Svg_LIBRARIES}
|
2019-07-15 12:27:04 +08:00
|
|
|
${Qt5DBus_LIBRARIES}
|
2019-03-26 17:14:29 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
install(TARGETS ${PLUGIN_NAME} LIBRARY DESTINATION lib/dde-dock/plugins)
|
|
|
|
|
|
|
|
# policy kit
|
2022-11-18 17:08:32 +08:00
|
|
|
install(FILES org.deepin.dde.dock.overlay.policy
|
2019-03-26 17:14:29 +08:00
|
|
|
DESTINATION share/polkit-1/actions/)
|