Files
gnucash/common/cmake_modules/MacroAppendForeach.cmake
Geert Janssens 83d14e1c1c Restructure the src directory
It is split into
- /libgnucash (for the non-gui bits)
- /gnucash (for the gui)
- /common (misc source files used by both)
- /bindings (currently only holds python bindings)

This is the first step in restructuring the code. It will need much
more fine tuning later on.
2017-08-10 18:45:00 +02:00

21 lines
657 B
CMake

# - MACRO_APPEND_FOREACH(<_targetlist> _prefix _suffix <_sourcelist> )
# 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.
MACRO (MACRO_APPEND_FOREACH _target _prefix _suffix)
FOREACH (_loop_var ${ARGN})
SET (${_target} ${${_target}} "${_prefix}${_loop_var}${_suffix}")
ENDFOREACH (_loop_var)
ENDMACRO (MACRO_APPEND_FOREACH)