From 191200b5cbec7074ddd7cf87cf5fe19ecf691481 Mon Sep 17 00:00:00 2001 From: James Benton Date: Sat, 6 Jun 2020 16:00:34 +0100 Subject: [PATCH] cmake: Add wut_link_rpl for linking to an rpl that has exports. The exports must have been added with wut_add_exports. --- share/wut.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/wut.cmake b/share/wut.cmake index 12d0484..1b13311 100644 --- a/share/wut.cmake +++ b/share/wut.cmake @@ -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 "")