cmake: Add wut_link_rpl for linking to an rpl that has exports.

The exports must have been added with wut_add_exports.
This commit is contained in:
James Benton 2020-06-06 16:00:34 +01:00 committed by James
parent 07e77e9136
commit 191200b5cb

View File

@ -48,6 +48,10 @@ function(wut_add_exports target exports_file)
target_link_libraries(${target}_imports INTERFACE "-T${RPL_IMPORT_LINKER_SCRIPT}")
endfunction()
function(wut_link_rpl target source)
target_link_libraries(${target} ${source}_imports)
endfunction()
function(wut_create_rpl_deprecated target source)
set(RPL_OPTIONS IS_RPX)
set(RPL_SINGLE_ARGS "")