Skip to content

Commit

Permalink
Fix cmake to include Gimbal submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
zdanek committed Sep 17, 2024
1 parent 555c9d1 commit bcef403
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ add_subdirectory(FlightDisplay)
add_subdirectory(FlightMap)
add_subdirectory(FollowMe)
add_subdirectory(Geo)
add_subdirectory(Gimbal)
add_subdirectory(GPS)
add_subdirectory(Joystick)
if (${QGC_GST_MICROHARD_ENABLED})
Expand Down Expand Up @@ -176,6 +177,7 @@ target_link_libraries(qgc
FlightMap
FollowMe
Geo
Gimbal
gps
Joystick
MissionManager
Expand Down
15 changes: 15 additions & 0 deletions src/Gimbal/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

add_library(Gimbal
GimbalController.cc
)

target_link_libraries(Gimbal
PUBLIC
qgc
)

target_include_directories(Gimbal
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
)

1 change: 1 addition & 0 deletions src/Joystick/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ add_library(Joystick

target_link_libraries(Joystick
PRIVATE
Gimbal
ui
PUBLIC
qgc
Expand Down
2 changes: 2 additions & 0 deletions src/Settings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ add_library(Settings
BrandImageSettings.h
FirmwareUpgradeSettings.cc
FirmwareUpgradeSettings.h
GimbalControllerSettings.cc
GimbalControllerSettings.h
FlightMapSettings.cc
FlightMapSettings.h
FlyViewSettings.cc
Expand Down
1 change: 1 addition & 0 deletions src/Vehicle/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ add_library(Vehicle
target_link_libraries(Vehicle
PRIVATE
Actuators
Gimbal
ui
compression
libevents_generated
Expand Down

0 comments on commit bcef403

Please sign in to comment.