Added support for external shared libraries

The FC_ADDON drivers are shared libraries that have PX4 wrappers.
The wrappers are built as modules which are static libraries and
cannot have shared library dependencies.

The shared libraries are required to resolve the symbols at runtime
and need to be linked with the libmainapp shared library.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2016-04-29 16:09:47 -07:00
committed by Lorenz Meier
parent b412980f90
commit 7a44ee7429
2 changed files with 5 additions and 0 deletions

View File

@@ -348,6 +348,9 @@ foreach(module ${config_module_list})
#message(STATUS "adding module: ${module}")
endforeach()
# Keep track of external shared libs required for modules
set(module_shared_libraries "${module_shared_libraries}" CACHE INTERNAL "module_shared_libraries")
add_subdirectory(src/firmware/${OS})
#add_dependencies(df_driver_framework nuttx_export_${CONFIG}.stamp)