mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +08:00
qurt fc_addon fix missing library linking and cleanup
This commit is contained in:
committed by
ChristophTobler
parent
822fc5725c
commit
698bc7d848
@@ -41,29 +41,19 @@ else()
|
|||||||
set(FC_ADDON $ENV{FC_ADDON})
|
set(FC_ADDON $ENV{FC_ADDON})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(libmpu9x50 SHARED IMPORTED GLOBAL)
|
add_library(mpu9x50 SHARED IMPORTED GLOBAL)
|
||||||
set_target_properties(libmpu9x50 PROPERTIES IMPORTED_LOCATION ${FC_ADDON}/flight_controller/hexagon/libs/libmpu9x50.so)
|
set_target_properties(mpu9x50 PROPERTIES IMPORTED_LOCATION ${FC_ADDON}/flight_controller/hexagon/libs/libmpu9x50.so)
|
||||||
|
|
||||||
include_directories(
|
|
||||||
${FC_ADDON}/flight_controller/hexagon/inc
|
|
||||||
)
|
|
||||||
|
|
||||||
px4_add_module(
|
px4_add_module(
|
||||||
MODULE platforms__qurt__fc_addon__mpu_spi
|
MODULE platforms__qurt__fc_addon__mpu_spi
|
||||||
MAIN mpu9x50
|
MAIN mpu9x50
|
||||||
STACK_MAIN 1200
|
STACK_MAIN 1200
|
||||||
COMPILE_FLAGS
|
INCLUDES
|
||||||
|
${FC_ADDON}/flight_controller/hexagon/inc
|
||||||
SRCS
|
SRCS
|
||||||
mpu9x50_main.cpp
|
mpu9x50_main.cpp
|
||||||
mpu9x50_params.c
|
mpu9x50_params.c
|
||||||
DEPENDS
|
DEPENDS
|
||||||
platforms__common
|
platforms__common
|
||||||
)
|
)
|
||||||
|
target_link_libraries(platforms__qurt__fc_addon__mpu_spi PRIVATE mpu9x50)
|
||||||
set(module_external_libraries
|
|
||||||
${module_external_libraries}
|
|
||||||
libmpu9x50
|
|
||||||
CACHE INTERNAL "module_external_libraries"
|
|
||||||
)
|
|
||||||
|
|
||||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
|
||||||
|
|||||||
@@ -41,30 +41,19 @@ else()
|
|||||||
set(FC_ADDON $ENV{FC_ADDON})
|
set(FC_ADDON $ENV{FC_ADDON})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(
|
add_library(rc_receiver SHARED IMPORTED GLOBAL)
|
||||||
${FC_ADDON}/flight_controller/hexagon/inc
|
set_target_properties(rc_receiver PROPERTIES IMPORTED_LOCATION ${FC_ADDON}/flight_controller/hexagon/libs/librc_receiver.so)
|
||||||
)
|
|
||||||
|
|
||||||
add_library(librc_receiver SHARED IMPORTED GLOBAL)
|
|
||||||
set_target_properties(librc_receiver PROPERTIES IMPORTED_LOCATION ${FC_ADDON}/flight_controller/hexagon/libs/librc_receiver.so)
|
|
||||||
|
|
||||||
px4_add_module(
|
px4_add_module(
|
||||||
MODULE platforms__qurt__fc_addon__rc_receiver
|
MODULE platforms__qurt__fc_addon__rc_receiver
|
||||||
MAIN rc_receiver
|
MAIN rc_receiver
|
||||||
STACK_MAIN 1200
|
STACK_MAIN 1200
|
||||||
COMPILE_FLAGS
|
INCLUDES
|
||||||
|
${FC_ADDON}/flight_controller/hexagon/inc
|
||||||
SRCS
|
SRCS
|
||||||
rc_receiver_main.cpp
|
rc_receiver_main.cpp
|
||||||
rc_receiver_params.c
|
rc_receiver_params.c
|
||||||
|
|
||||||
DEPENDS
|
DEPENDS
|
||||||
platforms__common
|
platforms__common
|
||||||
)
|
)
|
||||||
|
target_link_libraries(platforms__qurt__fc_addon__rc_receiver PRIVATE rc_receiver)
|
||||||
set(module_external_libraries
|
|
||||||
${module_external_libraries}
|
|
||||||
librc_receiver
|
|
||||||
CACHE INTERNAL "module_external_libraries"
|
|
||||||
)
|
|
||||||
|
|
||||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
|
||||||
|
|||||||
@@ -41,30 +41,19 @@ else()
|
|||||||
set(FC_ADDON $ENV{FC_ADDON})
|
set(FC_ADDON $ENV{FC_ADDON})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(
|
add_library(uart_esc SHARED IMPORTED GLOBAL)
|
||||||
${FC_ADDON}/flight_controller/hexagon/inc
|
set_target_properties(uart_esc PROPERTIES IMPORTED_LOCATION ${FC_ADDON}/flight_controller/hexagon/libs/libuart_esc.so)
|
||||||
)
|
|
||||||
|
|
||||||
add_library(libuart_esc SHARED IMPORTED GLOBAL)
|
|
||||||
set_target_properties(libuart_esc PROPERTIES IMPORTED_LOCATION ${FC_ADDON}/flight_controller/hexagon/libs/libuart_esc.so)
|
|
||||||
|
|
||||||
px4_add_module(
|
px4_add_module(
|
||||||
MODULE platforms__qurt__fc_addon__uart_esc
|
MODULE platforms__qurt__fc_addon__uart_esc
|
||||||
MAIN uart_esc
|
MAIN uart_esc
|
||||||
STACK_MAIN 1200
|
STACK_MAIN 1200
|
||||||
COMPILE_FLAGS
|
INCLUDES
|
||||||
SRCS
|
${FC_ADDON}/flight_controller/hexagon/inc
|
||||||
uart_esc_main.cpp
|
SRCS
|
||||||
|
uart_esc_main.cpp
|
||||||
uart_esc_params.c
|
uart_esc_params.c
|
||||||
|
DEPENDS
|
||||||
DEPENDS
|
platforms__common
|
||||||
platforms__common
|
|
||||||
)
|
|
||||||
|
|
||||||
set(module_external_libraries
|
|
||||||
${module_external_libraries}
|
|
||||||
libuart_esc
|
|
||||||
CACHE INTERNAL "module_external_libraries"
|
|
||||||
)
|
)
|
||||||
|
target_link_libraries(platforms__qurt__fc_addon__uart_esc PRIVATE uart_esc)
|
||||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
|
||||||
|
|||||||
Reference in New Issue
Block a user