subsurface/mobile-widgets/CMakeLists.txt
jan Iversen 9de296f3dd mobile-widgets: add themeInterface
Currently subsurfaceTheme resides in main.qml, where it does not naturally
belong.

Add C++ class that will replace subsurfaceTheme in main.qml in a 1-1 manner.

This opens future posibilities
- on top of the 3 themes, allow users to select colors/fonts
- add stylesheets to Template* components
- make day/night shift automatically.

Signed-off-by: jan Iversen <jan@casacondor.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2020-01-26 16:42:35 -08:00

28 lines
992 B
CMake

# mobile backend functions
set(SUBSURFACE_MOBILE_SRCS
qmlinterface.cpp
qmlmanager.cpp
themeinterface.cpp
qml/kirigami/src/columnview.cpp
qml/kirigami/src/delegaterecycler.cpp
qml/kirigami/src/enums.cpp
qml/kirigami/src/formlayoutattached.cpp
qml/kirigami/src/icon.cpp
qml/kirigami/src/kirigamiplugin.cpp
qml/kirigami/src/mnemonicattached.cpp
qml/kirigami/src/scenepositionattached.cpp
qml/kirigami/src/settings.cpp
qml/kirigami/src/wheelhandler.cpp
qml/kirigami/src/libkirigami/basictheme.cpp
qml/kirigami/src/libkirigami/kirigamipluginfactory.cpp
qml/kirigami/src/libkirigami/platformtheme.cpp
qml/kirigami/src/libkirigami/tabletmodewatcher.cpp
)
if (SUBSURFACE_TARGET_EXECUTABLE MATCHES "MobileExecutable")
include_directories(${CMAKE_SOURCE_DIR}/mobile-widgets/qml/kirigami/src/libkirigami)
add_definitions(-DKIRIGAMI_BUILD_TYPE_STATIC)
add_library(subsurface_mobile STATIC ${SUBSURFACE_MOBILE_SRCS})
target_link_libraries(subsurface_mobile ${QT_LIBRARIES})
endif()