mirror of
https://github.com/eclipse/upm.git
synced 2025-03-24 01:10:22 +03:00
cmake: add argument to add linker flags in upm_module_init macro
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> Signed-off-by: Sarah Knepper <sarah.knepper@intel.com>
This commit is contained in:
parent
121caf0829
commit
4bae8bfa20
@ -98,6 +98,9 @@ endif()
|
|||||||
|
|
||||||
macro(upm_module_init)
|
macro(upm_module_init)
|
||||||
add_library (${libname} SHARED ${module_src})
|
add_library (${libname} SHARED ${module_src})
|
||||||
|
foreach (linkflag ${ARGN})
|
||||||
|
target_link_libraries (${libname} ${linkflag})
|
||||||
|
endforeach ()
|
||||||
include_directories (${MRAA_INCLUDE_DIR} .)
|
include_directories (${MRAA_INCLUDE_DIR} .)
|
||||||
target_link_libraries (${libname} ${MRAA_LIBRARIES})
|
target_link_libraries (${libname} ${MRAA_LIBRARIES})
|
||||||
set_target_properties(
|
set_target_properties(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user