qtui: Set desktop file name
[quassel.git] / src / uisupport / CMakeLists.txt
1 quassel_add_module(UiSupport EXPORT)
2
3 target_sources(${TARGET} PRIVATE
4     aboutdata.cpp
5     abstractbuffercontainer.cpp
6     abstractitemview.cpp
7     action.cpp
8     actioncollection.cpp
9     bufferhotlistfilter.cpp
10     bufferview.cpp
11     bufferviewfilter.cpp
12     bufferviewoverlayfilter.cpp
13     clearablelineedit.cpp
14     clickable.cpp
15     clickablelabel.cpp
16     colorbutton.cpp
17     contextmenuactionprovider.cpp
18     flatproxymodel.cpp
19     fontselector.cpp
20     graphicalui.cpp
21     icon.cpp
22     multilineedit.cpp
23     networkmodelcontroller.cpp
24     nickview.cpp
25     nickviewfilter.cpp
26     qssparser.cpp
27     resizingstackedwidget.cpp
28     settingspage.cpp
29     styledlabel.cpp
30     tabcompleter.cpp
31     toolbaractionprovider.cpp
32     treeviewtouch.cpp
33     uisettings.cpp
34     uistyle.cpp
35     widgethelpers.h
36
37     # needed for automoc
38     abstractnotificationbackend.h
39 )
40
41 target_link_libraries(${TARGET}
42     PUBLIC
43         Qt5::Core
44         Qt5::Gui
45         Qt5::Network
46         Qt5::Widgets
47         Quassel::Client
48         Quassel::Common
49 )
50
51 if (EMBED_DATA)
52     set_property(SOURCE graphicalui.cpp APPEND PROPERTY COMPILE_DEFINITIONS EMBED_DATA)
53 endif()
54
55 if (WITH_KF5)
56     target_link_libraries(${TARGET}
57         PUBLIC
58             KF5::CoreAddons
59             KF5::TextWidgets
60             KF5::XmlGui
61     )
62 endif()
63
64 if (KF5Sonnet_FOUND)
65     target_link_libraries(${TARGET} PRIVATE KF5::SonnetUi)
66     target_compile_definitions(${TARGET} PRIVATE -DHAVE_SONNET)
67 endif()
68
69 target_link_if_exists(${TARGET}
70     PUBLIC
71         Quassel::Resource::HicolorIcons
72         Quassel::Resource::Icons
73         Quassel::Resource::IconThemes
74         Quassel::Resource::Pics
75 )