mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
cmake: update CMake to build the map components on mobile
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
a02ef84bb5
commit
9a6cd451e2
2 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -34,6 +34,7 @@ set(SUBSURFACE_MOBILE_MODELS_LIB_SRCS
|
|||
divelistmodel.cpp
|
||||
messagehandlermodel.cpp
|
||||
gpslistmodel.cpp
|
||||
maplocationmodel.cpp
|
||||
)
|
||||
|
||||
if(${SUBSURFACE_TARGET_EXECUTABLE} MATCHES "DesktopExecutable")
|
||||
|
|
Loading…
Reference in a new issue