1# - macro_append_foreach(<_targetlist> _prefix _suffix <_sourcelist> ) 2 3# Copyright (c) 2009, Christian Stimming 4 5# Appends each element of the <_sourcelist> to the <_targetlist>, but 6# with the _prefix prepended and _suffix appended. Note: If no suffix 7# is desired, pass an empty string ("") there. 8 9# Redistribution and use is allowed according to the terms of the BSD license. 10# For details see the accompanying COPYING-CMAKE-SCRIPTS file. 11 12macro (macro_append_foreach _target _prefix _suffix) 13 14 foreach (_loop_var ${ARGN}) 15 16 set (${_target} ${${_target}} "${_prefix}${_loop_var}${_suffix}") 17 18 endforeach (_loop_var) 19 20endmacro (macro_append_foreach) 21