diff options
author | jan Iversen <jan@casacondor.com> | 2019-12-22 16:44:35 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-24 06:18:36 +0900 |
commit | 75032429144e8806d72ad94e506f9f7aab69e969 (patch) | |
tree | d3b7270768417aaacc9e848f0d3815972a4d486b | |
parent | a17cb6b681ad9ed86896109f73b72af98c26c8be (diff) | |
download | subsurface-75032429144e8806d72ad94e506f9f7aab69e969.tar.gz |
build-system: Add CMakeLists.txt to mobile-widgets
In order to make the central CMakeLists cleaner and more consistent
add a CMakeLists.txt to mobile-widgets, like in other root directories.
Signed-off-by: Jan Iversen <jan@casacondor.com>
-rw-r--r-- | CMakeLists.txt | 18 | ||||
-rw-r--r-- | mobile-widgets/CMakeLists.txt | 27 |
2 files changed, 29 insertions, 16 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b2211c477..f46393243 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -279,6 +279,7 @@ add_subdirectory(qt-models) add_subdirectory(commands) add_subdirectory(profile-widget) add_subdirectory(map-widget) +add_subdirectory(mobile-widgets) if (SUBSURFACE_TARGET_EXECUTABLE MATCHES "DesktopExecutable") add_subdirectory(desktop-widgets) @@ -287,22 +288,6 @@ endif() # create the executables if (SUBSURFACE_TARGET_EXECUTABLE MATCHES "MobileExecutable") set(MOBILE_SRC - mobile-widgets/qmlmanager.cpp - mobile-widgets/qmlprefs.cpp - mobile-widgets/qml/kirigami/src/columnview.cpp - mobile-widgets/qml/kirigami/src/delegaterecycler.cpp - mobile-widgets/qml/kirigami/src/enums.cpp - mobile-widgets/qml/kirigami/src/formlayoutattached.cpp - mobile-widgets/qml/kirigami/src/icon.cpp - mobile-widgets/qml/kirigami/src/kirigamiplugin.cpp - mobile-widgets/qml/kirigami/src/mnemonicattached.cpp - mobile-widgets/qml/kirigami/src/scenepositionattached.cpp - mobile-widgets/qml/kirigami/src/settings.cpp - mobile-widgets/qml/kirigami/src/wheelhandler.cpp - mobile-widgets/qml/kirigami/src/libkirigami/basictheme.cpp - mobile-widgets/qml/kirigami/src/libkirigami/kirigamipluginfactory.cpp - mobile-widgets/qml/kirigami/src/libkirigami/platformtheme.cpp - mobile-widgets/qml/kirigami/src/libkirigami/tabletmodewatcher.cpp subsurface-mobile-main.cpp subsurface-helper.cpp ) @@ -323,6 +308,7 @@ if (SUBSURFACE_TARGET_EXECUTABLE MATCHES "MobileExecutable") endif() target_link_libraries( ${SUBSURFACE_TARGET} + subsurface_mobile subsurface_profile subsurface_mapwidget subsurface_models_mobile diff --git a/mobile-widgets/CMakeLists.txt b/mobile-widgets/CMakeLists.txt new file mode 100644 index 000000000..69cf7b4ec --- /dev/null +++ b/mobile-widgets/CMakeLists.txt @@ -0,0 +1,27 @@ +# mobile backend functions + +set(SUBSURFACE_MOBILE_SRCS + qmlmanager.cpp + qmlprefs.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() |