Commit 9fa08020 authored by Daniel Agar's avatar Daniel Agar

cmake create api library in src/api

parent b31a5e8d
......@@ -7,7 +7,6 @@ include_directories(
QtLocationPlugin/QMLControl
${Qt5Location_PRIVATE_INCLUDE_DIRS}
api
AutoPilotPlugins
AutoPilotPlugins/APM
AutoPilotPlugins/Common
......@@ -216,11 +215,6 @@ add_library(qgc
${EXTRA_SRC}
api/QGCCorePlugin.cc
api/QGCOptions.cc
api/QGCSettings.cc
api/QmlComponentInfo.cc
AutoPilotPlugins/APM/APMAirframeComponent.cc
AutoPilotPlugins/APM/APMAirframeComponentAirframes.cc
AutoPilotPlugins/APM/APMAirframeComponentController.cc
......@@ -487,6 +481,7 @@ set_source_files_properties(QGCApplication.cc PROPERTIES COMPILE_DEFINITIONS GIT
add_subdirectory(AnalyzeView)
add_subdirectory(Airmap)
add_subdirectory(api)
add_subdirectory(Audio)
add_subdirectory(GPS)
......@@ -511,6 +506,7 @@ target_link_libraries(qgc
Airmap
AnalyzeView
api
Audio
gps
qwt # LinechartWidget
......
add_library(api
QGCCorePlugin.cc
QGCOptions.cc
QGCSettings.cc
QmlComponentInfo.cc
)
target_link_libraries(api
PUBLIC
qgc
)
target_include_directories(api PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment