| 
									
										
										
										
											2021-01-13 20:07:28 +00:00
										 |  |  | project(map)
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | set(map_SOURCES | 
					
						
							|  |  |  |     map.cpp
 | 
					
						
							|  |  |  |     mapsettings.cpp
 | 
					
						
							|  |  |  |     mapplugin.cpp
 | 
					
						
							|  |  |  |     mapwebapiadapter.cpp
 | 
					
						
							| 
									
										
										
										
											2021-11-23 16:44:07 +00:00
										 |  |  |     osmtemplateserver.cpp
 | 
					
						
							| 
									
										
										
										
											2021-12-03 18:23:14 +00:00
										 |  |  |     ibpbeacon.cpp
 | 
					
						
							| 
									
										
										
										
											2022-02-04 20:40:43 +00:00
										 |  |  |     webserver.cpp
 | 
					
						
							| 
									
										
										
										
											2021-01-13 20:07:28 +00:00
										 |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | set(map_HEADERS | 
					
						
							|  |  |  |     map.h
 | 
					
						
							|  |  |  |     mapsettings.h
 | 
					
						
							|  |  |  |     mapplugin.h
 | 
					
						
							|  |  |  |     mapreport.h
 | 
					
						
							|  |  |  |     mapwebapiadapter.h
 | 
					
						
							| 
									
										
										
										
											2021-11-23 16:44:07 +00:00
										 |  |  |     osmtemplateserver.h
 | 
					
						
							| 
									
										
										
										
											2021-01-22 14:54:22 +00:00
										 |  |  |     beacon.h
 | 
					
						
							| 
									
										
										
										
											2021-12-03 18:23:14 +00:00
										 |  |  |     ibpbeacon.h
 | 
					
						
							| 
									
										
										
										
											2022-02-04 20:40:43 +00:00
										 |  |  |     webserver.h
 | 
					
						
							| 
									
										
										
										
											2021-01-13 20:07:28 +00:00
										 |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | include_directories( | 
					
						
							|  |  |  |     ${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
 | 
					
						
							| 
									
										
										
										
											2022-11-17 14:34:54 +00:00
										 |  |  |     ${Qt${QT_DEFAULT_MAJOR_VERSION}Gui_PRIVATE_INCLUDE_DIRS}
 | 
					
						
							| 
									
										
										
										
											2021-01-13 20:07:28 +00:00
										 |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if(NOT SERVER_MODE)
 | 
					
						
							|  |  |  |     set(map_SOURCES | 
					
						
							|  |  |  |         ${map_SOURCES}
 | 
					
						
							|  |  |  |         mapgui.cpp
 | 
					
						
							|  |  |  |         mapgui.ui
 | 
					
						
							| 
									
										
										
										
											2021-01-22 14:54:22 +00:00
										 |  |  |         maplocationdialog.cpp
 | 
					
						
							|  |  |  |         maplocationdialog.ui
 | 
					
						
							|  |  |  |         mapmaidenheaddialog.cpp
 | 
					
						
							|  |  |  |         mapmaidenheaddialog.ui
 | 
					
						
							|  |  |  |         mapsettingsdialog.cpp
 | 
					
						
							|  |  |  |         mapsettingsdialog.ui
 | 
					
						
							|  |  |  |         mapbeacondialog.cpp
 | 
					
						
							|  |  |  |         mapbeacondialog.ui
 | 
					
						
							| 
									
										
										
										
											2021-12-03 18:23:14 +00:00
										 |  |  |         mapibpbeacondialog.cpp
 | 
					
						
							|  |  |  |         mapibpbeacondialog.ui
 | 
					
						
							| 
									
										
										
										
											2021-06-23 14:15:50 +00:00
										 |  |  |         mapradiotimedialog.cpp
 | 
					
						
							|  |  |  |         mapradiotimedialog.ui
 | 
					
						
							| 
									
										
										
										
											2022-02-04 20:40:43 +00:00
										 |  |  |         mapcolordialog.cpp
 | 
					
						
							|  |  |  |         mapmodel.cpp
 | 
					
						
							|  |  |  |         mapwebsocketserver.cpp
 | 
					
						
							|  |  |  |         cesiuminterface.cpp
 | 
					
						
							|  |  |  |         czml.cpp
 | 
					
						
							| 
									
										
										
										
											2021-01-13 20:07:28 +00:00
										 |  |  |         map.qrc
 | 
					
						
							| 
									
										
										
										
											2021-02-26 20:30:59 +00:00
										 |  |  |         icons.qrc
 | 
					
						
							| 
									
										
										
										
											2022-02-04 20:40:43 +00:00
										 |  |  |         cesium.qrc
 | 
					
						
							| 
									
										
										
										
											2021-01-13 20:07:28 +00:00
										 |  |  |     )
 | 
					
						
							|  |  |  |     set(map_HEADERS | 
					
						
							|  |  |  |         ${map_HEADERS}
 | 
					
						
							|  |  |  |         mapgui.h
 | 
					
						
							| 
									
										
										
										
											2021-01-22 14:54:22 +00:00
										 |  |  |         maplocationdialog.h
 | 
					
						
							|  |  |  |         mapmaidenheaddialog.h
 | 
					
						
							|  |  |  |         mapsettingsdialog.h
 | 
					
						
							|  |  |  |         mapbeacondialog.h
 | 
					
						
							| 
									
										
										
										
											2021-12-03 18:23:14 +00:00
										 |  |  |         mapibpbeacon.h
 | 
					
						
							| 
									
										
										
										
											2021-06-23 14:15:50 +00:00
										 |  |  |         mapradiotimedialog.h
 | 
					
						
							| 
									
										
										
										
											2022-02-04 20:40:43 +00:00
										 |  |  |         mapcolordialog.h
 | 
					
						
							|  |  |  |         mapmodel.h
 | 
					
						
							|  |  |  |         mapwebsocketserver.h
 | 
					
						
							|  |  |  |         cesiuminterface.h
 | 
					
						
							|  |  |  |         czml.h
 | 
					
						
							| 
									
										
										
										
											2021-01-13 20:07:28 +00:00
										 |  |  |     )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     set(TARGET_NAME map)
 | 
					
						
							| 
									
										
										
										
											2022-11-17 14:34:54 +00:00
										 |  |  |     set(TARGET_LIB "Qt::Widgets" Qt::Quick Qt::QuickWidgets Qt::Positioning Qt::Location Qt::WebEngine Qt::WebEngineCore Qt::WebEngineWidgets)
 | 
					
						
							| 
									
										
										
										
											2021-01-13 20:07:28 +00:00
										 |  |  |     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} | 
					
						
							| 
									
										
										
										
											2022-11-17 14:34:54 +00:00
										 |  |  |     Qt::Core
 | 
					
						
							| 
									
										
										
										
											2021-01-13 20:07:28 +00:00
										 |  |  |     ${TARGET_LIB}
 | 
					
						
							|  |  |  |     sdrbase
 | 
					
						
							|  |  |  |     ${TARGET_LIB_GUI}
 | 
					
						
							|  |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})
 | 
					
						
							| 
									
										
										
										
											2021-01-22 14:54:22 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | if(WIN32)
 | 
					
						
							|  |  |  |   # Run deployqt for QtQuick etc
 | 
					
						
							|  |  |  |   include(DeployQt)
 | 
					
						
							|  |  |  |   windeployqt(${TARGET_NAME} ${SDRANGEL_BINARY_BIN_DIR} ${PROJECT_SOURCE_DIR}/map)
 | 
					
						
							|  |  |  | endif()
 | 
					
						
							| 
									
										
										
										
											2022-02-04 20:40:43 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | # Install debug symbols
 | 
					
						
							|  |  |  | if (WIN32)
 | 
					
						
							|  |  |  |     install(FILES $<TARGET_PDB_FILE:${TARGET_NAME}> CONFIGURATIONS Debug RelWithDebInfo DESTINATION ${INSTALL_FOLDER} )
 | 
					
						
							|  |  |  | endif()
 |