Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show All 18 Lines | 15 | set(kirigami_SRCS | |||
---|---|---|---|---|---|
19 | delegaterecycler.cpp | 19 | delegaterecycler.cpp | ||
20 | icon.cpp | 20 | icon.cpp | ||
21 | settings.cpp | 21 | settings.cpp | ||
22 | formlayoutattached.cpp | 22 | formlayoutattached.cpp | ||
23 | pagepool.cpp | 23 | pagepool.cpp | ||
24 | scenepositionattached.cpp | 24 | scenepositionattached.cpp | ||
25 | mnemonicattached.cpp | 25 | mnemonicattached.cpp | ||
26 | wheelhandler.cpp | 26 | wheelhandler.cpp | ||
27 | shadowedrectangle.cpp | ||||
28 | scenegraph/shadowedrectanglenode.cpp | ||||
29 | scenegraph/shadowedrectanglematerial.cpp | ||||
27 | ${kirigami_QM_LOADER} | 30 | ${kirigami_QM_LOADER} | ||
28 | ${KIRIGAMI_STATIC_FILES} | 31 | ${KIRIGAMI_STATIC_FILES} | ||
29 | ) | 32 | ) | ||
30 | 33 | | |||
34 | qt5_add_resources(SHADERS scenegraph/shaders.qrc) | ||||
35 | | ||||
31 | add_subdirectory(libkirigami) | 36 | add_subdirectory(libkirigami) | ||
32 | 37 | | |||
33 | if(STATIC_LIBRARY) | 38 | if(STATIC_LIBRARY) | ||
34 | # `rcc` is a bit dumb and isn't designed to use auto generated files, to | 39 | # `rcc` is a bit dumb and isn't designed to use auto generated files, to | ||
35 | # avoid poluting the source directory, use absolute paths | 40 | # avoid poluting the source directory, use absolute paths | ||
36 | set(kirigami_QML_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../) | 41 | set(kirigami_QML_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../) | ||
37 | 42 | | |||
38 | # First, pre-process the QRC to add the files associated with the right Qt | 43 | # First, pre-process the QRC to add the files associated with the right Qt | ||
Show All 11 Lines | |||||
50 | ) | 55 | ) | ||
51 | 56 | | |||
52 | if (UNIX AND NOT ANDROID AND NOT(APPLE) AND NOT(DISABLE_DBUS)) | 57 | if (UNIX AND NOT ANDROID AND NOT(APPLE) AND NOT(DISABLE_DBUS)) | ||
53 | qt5_add_dbus_interface(kirigami_SRCS libkirigami/org.kde.KWin.TabletModeManager.xml tabletmodemanager_interface) | 58 | qt5_add_dbus_interface(kirigami_SRCS libkirigami/org.kde.KWin.TabletModeManager.xml tabletmodemanager_interface) | ||
54 | endif() | 59 | endif() | ||
55 | endif(STATIC_LIBRARY) | 60 | endif(STATIC_LIBRARY) | ||
56 | 61 | | |||
57 | 62 | | |||
58 | add_library(kirigamiplugin ${kirigami_SRCS} ${RESOURCES}) | 63 | add_library(kirigamiplugin ${kirigami_SRCS} ${RESOURCES} ${SHADERS}) | ||
59 | 64 | | |||
60 | if(STATIC_LIBRARY) | 65 | if(STATIC_LIBRARY) | ||
61 | SET_TARGET_PROPERTIES(kirigamiplugin PROPERTIES | 66 | SET_TARGET_PROPERTIES(kirigamiplugin PROPERTIES | ||
62 | AUTOMOC_MOC_OPTIONS -Muri=org.kde.kirigami) | 67 | AUTOMOC_MOC_OPTIONS -Muri=org.kde.kirigami) | ||
63 | if (UNIX AND NOT ANDROID AND NOT(APPLE) AND NOT(DISABLE_DBUS)) | 68 | if (UNIX AND NOT ANDROID AND NOT(APPLE) AND NOT(DISABLE_DBUS)) | ||
64 | set(Kirigami_EXTRA_LIBS Qt5::DBus) | 69 | set(Kirigami_EXTRA_LIBS Qt5::DBus) | ||
65 | else() | 70 | else() | ||
66 | set(Kirigami_EXTRA_LIBS "") | 71 | set(Kirigami_EXTRA_LIBS "") | ||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |