Commit b97df159 authored by Daniel Agar's avatar Daniel Agar

cmake create gps library in src/GPS

parent 9f51ed83
......@@ -362,15 +362,6 @@ list(APPEND QGC_SRC
src/FollowMe/FollowMe.cc
src/GPS/Drivers/src/ashtech.cpp
src/GPS/Drivers/src/gps_helper.cpp
src/GPS/Drivers/src/mtk.cpp
src/GPS/Drivers/src/rtcm.cpp
src/GPS/Drivers/src/ubx.cpp
src/GPS/GPSManager.cc
src/GPS/GPSProvider.cc
src/GPS/RTCM/RTCMMavlink.cc
src/Joystick/Joystick.cc
src/Joystick/JoystickManager.cc
src/Joystick/JoystickSDL.cc
......@@ -754,9 +745,6 @@ list(APPEND QGC_UI
include_directories(
src/QtLocationPlugin/QMLControl
#src/QtLocationPlugin/qtlocation/include/QtLocation
#src/QtLocationPlugin/qtlocation/include/QtLocation/5.5.1
#src/QtLocationPlugin/qtlocation/include/QtPositioning/5.5.1
${Qt5Location_PRIVATE_INCLUDE_DIRS}
libs/eigen
......@@ -785,7 +773,6 @@ include_directories(
src/FlightDisplay
src/FlightMap/Widgets
src/FollowMe
src/GPS
src/Joystick
src/MissionManager
src/PositionManager
......@@ -803,6 +790,8 @@ include_directories(
src/ViewWidgets
)
add_subdirectory(src)
if(ANDROID)
add_library(QGroundControl SHARED ${QGC_SRC} ${QGC_RESOURCES} ${QGC_UI})
else()
......@@ -825,6 +814,10 @@ target_link_libraries(QGroundControl
Qt5::Xml
Qt5::Widgets
)
target_link_libraries(QGroundControl
gps
)
if(NOT QT_MKSPEC MATCHES "winrt")
target_link_libraries(QGroundControl
......
add_subdirectory(GPS)
add_library(gps
Drivers/src/ashtech.cpp
Drivers/src/gps_helper.cpp
Drivers/src/mtk.cpp
Drivers/src/rtcm.cpp
Drivers/src/ubx.cpp
GPSManager.cc
GPSProvider.cc
RTCM/RTCMMavlink.cc
)
target_link_libraries(gps
Qt5::Core
Qt5::Location
Qt5::SerialPort
Qt5::Svg
Qt5::TextToSpeech
)
target_include_directories(gps INTERFACE ${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