2018-05-03 16:18:15 -05:00
|
|
|
# - macro_append_foreach(<_targetlist> _prefix _suffix <_sourcelist> )
|
2010-02-25 11:42:00 -06:00
|
|
|
|
|
|
|
# Copyright (c) 2009, Christian Stimming
|
|
|
|
|
|
|
|
# Appends each element of the <_sourcelist> to the <_targetlist>, but
|
|
|
|
# with the _prefix prepended and _suffix appended. Note: If no suffix
|
|
|
|
# is desired, pass an empty string ("") there.
|
|
|
|
|
|
|
|
# Redistribution and use is allowed according to the terms of the BSD license.
|
|
|
|
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
|
|
|
|
2018-05-03 16:18:15 -05:00
|
|
|
macro (macro_append_foreach _target _prefix _suffix)
|
2010-02-25 11:42:00 -06:00
|
|
|
|
2018-05-03 16:18:15 -05:00
|
|
|
foreach (_loop_var ${ARGN})
|
2010-02-25 11:42:00 -06:00
|
|
|
|
2018-05-03 16:18:15 -05:00
|
|
|
set (${_target} ${${_target}} "${_prefix}${_loop_var}${_suffix}")
|
2010-02-25 11:42:00 -06:00
|
|
|
|
2018-05-03 16:18:15 -05:00
|
|
|
endforeach (_loop_var)
|
2010-02-25 11:42:00 -06:00
|
|
|
|
2018-05-03 16:18:15 -05:00
|
|
|
endmacro (macro_append_foreach)
|