dde-dock/plugins/sound/CMakeLists.txt
tsic404 579cf0afe9 fix: sound checked item highlight do not follow theme
1. update sound icon when theme changed
2. add built-in dci resources to prevent it become a white icon when changed into theme without dci resources

log: update sound icon when theme changed
2023-05-08 09:15:41 +00:00

50 lines
1.5 KiB
CMake

set(PLUGIN_NAME "sound")
project(${PLUGIN_NAME})
generation_dbus_interface(${CMAKE_CURRENT_SOURCE_DIR}/dbusinterface/xml ${CMAKE_CURRENT_SOURCE_DIR}/dbusinterface/generation_dbus_interface)
# Sources files
file(GLOB_RECURSE SRCS "*.h"
"*.cpp"
"../../widgets/*.h"
"../../widgets/*.cpp"
"../../frame/util/imageutil.h"
"../../frame/util/imageutil.cpp"
"../../frame/util/horizontalseperator.h"
"../../frame/util/horizontalseperator.cpp"
"../../frame/qtdbusextended/*.h"
"../../frame/qtdbusextended/*.cpp")
find_package(PkgConfig REQUIRED)
find_package(Qt5 REQUIRED COMPONENTS Concurrent DBus Svg Widgets)
find_package(DtkWidget REQUIRED)
pkg_check_modules(XCB_LIBS REQUIRED IMPORTED_TARGET xcursor)
pkg_check_modules(QGSettings REQUIRED IMPORTED_TARGET gsettings-qt)
add_definitions("${QT_DEFINITIONS} -DQT_PLUGIN")
add_library(${PLUGIN_NAME} SHARED ${SRCS} resources/sound.qrc)
set_target_properties(${PLUGIN_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ../quick-trays)
target_include_directories(${PLUGIN_NAME} PUBLIC ${DtkWidget_INCLUDE_DIRS}
./dbusinterface
./dbusinterface/generation_dbus_interface
../../interfaces
../../widgets
../../frame
../../frame/accessible
../../frame/qtdbusextended
)
target_link_libraries(${PLUGIN_NAME} PRIVATE
${DtkWidget_LIBRARIES}
PkgConfig::QGSettings
PkgConfig::XCB_LIBS
Qt5::Concurrent
Qt5::Widgets
Qt5::DBus
Qt5::Svg)
install(TARGETS ${PLUGIN_NAME} LIBRARY DESTINATION lib/dde-dock/plugins/quick-trays)