mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-03 23:41:16 -05:00
446749cbbb
Add support for different map types (street/satellite) and different map providers. Support finding real world addresses on the map. Add Maidenhead locator converter. Add Beacons. Allow data sources to be selected by a user. Add context menu to allow setting an object as a target, setting center frequency and adjusting display order.
76 lines
1.5 KiB
CMake
76 lines
1.5 KiB
CMake
project(map)
|
|
|
|
set(map_SOURCES
|
|
map.cpp
|
|
mapsettings.cpp
|
|
mapplugin.cpp
|
|
mapwebapiadapter.cpp
|
|
)
|
|
|
|
set(map_HEADERS
|
|
map.h
|
|
mapsettings.h
|
|
mapplugin.h
|
|
mapreport.h
|
|
mapwebapiadapter.h
|
|
beacon.h
|
|
)
|
|
|
|
include_directories(
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
|
)
|
|
|
|
if(NOT SERVER_MODE)
|
|
set(map_SOURCES
|
|
${map_SOURCES}
|
|
mapgui.cpp
|
|
mapgui.ui
|
|
maplocationdialog.cpp
|
|
maplocationdialog.ui
|
|
mapmaidenheaddialog.cpp
|
|
mapmaidenheaddialog.ui
|
|
mapsettingsdialog.cpp
|
|
mapsettingsdialog.ui
|
|
mapbeacondialog.cpp
|
|
mapbeacondialog.ui
|
|
map.qrc
|
|
)
|
|
set(map_HEADERS
|
|
${map_HEADERS}
|
|
mapgui.h
|
|
maplocationdialog.h
|
|
mapmaidenheaddialog.h
|
|
mapsettingsdialog.h
|
|
mapbeacondialog.h
|
|
)
|
|
|
|
set(TARGET_NAME map)
|
|
set(TARGET_LIB "Qt5::Widgets" Qt5::Quick Qt5::QuickWidgets Qt5::Positioning Qt5::Location)
|
|
set(TARGET_LIB_GUI "sdrgui")
|
|
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
|
|
else()
|
|
set(TARGET_NAME mapsrv)
|
|
set(TARGET_LIB "")
|
|
set(TARGET_LIB_GUI "")
|
|
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
|
|
endif()
|
|
|
|
add_library(${TARGET_NAME} SHARED
|
|
${map_SOURCES}
|
|
)
|
|
|
|
target_link_libraries(${TARGET_NAME}
|
|
Qt5::Core
|
|
${TARGET_LIB}
|
|
sdrbase
|
|
${TARGET_LIB_GUI}
|
|
)
|
|
|
|
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})
|
|
|
|
if(WIN32)
|
|
# Run deployqt for QtQuick etc
|
|
include(DeployQt)
|
|
windeployqt(${TARGET_NAME} ${SDRANGEL_BINARY_BIN_DIR} ${PROJECT_SOURCE_DIR}/map)
|
|
endif()
|