forked from Archive/PX4-Autopilot
Generalized use of external modules
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
parent
7d9a14dab5
commit
136c6da36d
|
@ -330,8 +330,10 @@ execute_process(COMMAND cmake -E make_directory ${ep_base}/Install/include)
|
|||
#
|
||||
set(module_libraries)
|
||||
foreach(module ${config_module_list})
|
||||
if(module MATCHES "Eagle")
|
||||
add_subdirectory(${module} ${CMAKE_BINARY_DIR}/${module})
|
||||
string(REGEX MATCH "^[./]" external_module ${module})
|
||||
if(external_module)
|
||||
get_filename_component(EXT_MODULE ${module} NAME)
|
||||
add_subdirectory(${module} ${CMAKE_BINARY_DIR}/external_mod/${EXT_MODULE})
|
||||
else()
|
||||
add_subdirectory(src/${module})
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue