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:
Brendan Le Foll 2015-01-17 10:09:06 +00:00 committed by Sarah Knepper
parent 121caf0829
commit 4bae8bfa20

View File

@ -98,6 +98,9 @@ endif()
macro(upm_module_init)
add_library (${libname} SHARED ${module_src})
foreach (linkflag ${ARGN})
target_link_libraries (${libname} ${linkflag})
endforeach ()
include_directories (${MRAA_INCLUDE_DIR} .)
target_link_libraries (${libname} ${MRAA_LIBRARIES})
set_target_properties(