mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 18:23:23 +00:00
build-system: Add CMakeLists.txt to map-widget
In order to make the central CMakeLists cleaner and more consistent add a CMakeLists.txt to map-widget, like in other root directories. Signed-off-by: Jan Iversen <jan@casacondor.com>
This commit is contained in:
parent
41d6ff96c1
commit
74755b64b1
2 changed files with 11 additions and 1 deletions
|
@ -278,6 +278,7 @@ add_subdirectory(core)
|
|||
add_subdirectory(qt-models)
|
||||
add_subdirectory(commands)
|
||||
add_subdirectory(profile-widget)
|
||||
add_subdirectory(map-widget)
|
||||
|
||||
if (SUBSURFACE_TARGET_EXECUTABLE MATCHES "DesktopExecutable")
|
||||
add_subdirectory(desktop-widgets)
|
||||
|
@ -304,7 +305,6 @@ if (SUBSURFACE_TARGET_EXECUTABLE MATCHES "MobileExecutable")
|
|||
mobile-widgets/qml/kirigami/src/libkirigami/tabletmodewatcher.cpp
|
||||
subsurface-mobile-main.cpp
|
||||
subsurface-helper.cpp
|
||||
map-widget/qmlmapwidgethelper.cpp
|
||||
)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/mobile-widgets/qml/kirigami/src/libkirigami)
|
||||
add_definitions(-DKIRIGAMI_BUILD_TYPE_STATIC)
|
||||
|
@ -324,6 +324,7 @@ if (SUBSURFACE_TARGET_EXECUTABLE MATCHES "MobileExecutable")
|
|||
target_link_libraries(
|
||||
${SUBSURFACE_TARGET}
|
||||
subsurface_profile
|
||||
subsurface_mapwidget
|
||||
subsurface_models_mobile
|
||||
subsurface_corelib
|
||||
${SUBSURFACE_LINK_LIBRARIES}
|
||||
|
@ -346,6 +347,7 @@ elseif (SUBSURFACE_TARGET_EXECUTABLE MATCHES "DesktopExecutable")
|
|||
subsurface_interface
|
||||
subsurface_profile
|
||||
subsurface_statistics
|
||||
subsurface_mapwidget
|
||||
subsurface_models_desktop
|
||||
subsurface_commands_desktop
|
||||
subsurface_corelib
|
||||
|
|
8
map-widget/CMakeLists.txt
Normal file
8
map-widget/CMakeLists.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
# map widget to show locations
|
||||
|
||||
# library used by mobile build
|
||||
set(SUBSURFACE_MAPWIDGET_SRCS
|
||||
qmlmapwidgethelper.cpp
|
||||
)
|
||||
add_library(subsurface_mapwidget STATIC ${SUBSURFACE_MAPWIDGET_SRCS})
|
||||
target_link_libraries(subsurface_mapwidget ${QT_LIBRARIES})
|
Loading…
Add table
Reference in a new issue