From 9a6cd451e24fe696ea7636f4e6f2fa457743683e Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Thu, 8 Mar 2018 22:30:03 +0200 Subject: cmake: update CMake to build the map components on mobile Signed-off-by: Lubomir I. Ivanov --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 94acf6782..b9749276a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -170,8 +170,10 @@ elseif(${SUBSURFACE_TARGET_EXECUTABLE} MATCHES "MobileExecutable") set(SUBSURFACE_TARGET subsurface-mobile) endif() list(APPEND QT_EXTRA_COMPONENTS Quick) + list(APPEND QT_EXTRA_COMPONENTS Location) list(APPEND QT_EXTRA_COMPONENTS QuickControls2) list(APPEND QT_EXTRA_LIBRARIES Qt5::Quick) + list(APPEND QT_EXTRA_LIBRARIES Qt5::Location) list(APPEND QT_EXTRA_LIBRARIES Qt5::QuickControls2) add_definitions(-DSUBSURFACE_MOBILE) message(STATUS "Building Subsurface-mobile requires BT support") @@ -292,6 +294,7 @@ if(${SUBSURFACE_TARGET_EXECUTABLE} MATCHES "MobileExecutable") mobile-widgets/qml/kirigami/src/libkirigami/platformtheme.cpp subsurface-mobile-main.cpp subsurface-mobile-helper.cpp + map-widget/qmlmapwidgethelper.cpp ) include_directories(${CMAKE_SOURCE_DIR}/mobile-widgets/qml/kirigami/src/libkirigami) if(NOT ANDROID AND NOT iOS) -- cgit v1.2.3-70-g09d2