
if(QGC_AIRMAP)

	add_library(Airmap
		AirMapAdvisoryManager.cc
		AirMapFlightManager.cc
		AirMapFlightPlanManager.cc
		AirMapManager.cc
		AirMapRestrictionManager.cc
		AirMapRulesetsManager.cc
		AirMapSettings.cc
		AirMapSharedState.cc
		AirMapTelemetry.cc
		AirMapTrafficMonitor.cc
		AirMapVehicleManager.cc
		AirMapWeatherInfoManager.cc

		airmap.qrc
	)
else()
	add_library(Airmap
		dummy/AirspaceManager.cc
		airmap.qrc
	)
	target_include_directories(Airmap PUBLIC dummy)
endif()

target_link_libraries(Airmap
	Qt5::Core
	Qt5::Location
	Qt5::Widgets

	qgc
)

target_include_directories(Airmap INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})



if(QGC_AIRMAP)

	add_library(Airmap
		AirMapAdvisoryManager.cc
		AirMapFlightManager.cc
		AirMapFlightPlanManager.cc
		AirMapManager.cc
		AirMapRestrictionManager.cc
		AirMapRulesetsManager.cc
		AirMapSettings.cc
		AirMapSharedState.cc
		AirMapTelemetry.cc
		AirMapTrafficMonitor.cc
		AirMapVehicleManager.cc
		AirMapWeatherInfoManager.cc

		airmap.qrc
	)
	add_custom_target(AirmapQml
		SOURCES
		AirmapSettings.qml
		AirspaceRegulation.qml
		ComplianceRules.qml
		FlightDetails.qml
		RuleSelector.qml
		AirspaceControl.qml
		AirspaceWeather.qml
		FlightBrief.qml
		FlightFeature.qml
	)
else()
	add_library(Airmap
		dummy/AirspaceManager.cc
		airmap.qrc
	)
	target_include_directories(Airmap PUBLIC dummy)
endif()

target_link_libraries(Airmap
	Qt5::Core
	Qt5::Location
	Qt5::Widgets

	qgc
)

target_include_directories(Airmap INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})


Add Qml targets to Airmap
CMake: Add Qml targets to Airmap

This creates a fake target that adds the Qml sources to the CMakeProject
this let's IDE's that read CMake files to display the files on the
project viewer
