Add cmake macro to append sources from properties

Change-Id: I06771c56ebca2e7a0dc5b65d6ea53aca95a70797
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2019-11-19 15:28:33 +01:00
committed by sys_ocldev
parent 4b0d1c93ea
commit bccfa1df38
12 changed files with 45 additions and 58 deletions

View File

@@ -94,3 +94,11 @@ macro(get_family_name_with_type gen_type platform_type)
string(TOLOWER ${platform_type} platform_type_lower)
set(family_name_with_type ${gen_type_capitalized}${platform_type_lower})
endmacro()
macro(append_sources_from_properties list_name)
foreach(name ${ARGN})
get_property(${name} GLOBAL PROPERTY ${name})
list(APPEND ${list_name} ${${name}})
endforeach()
endmacro()