Warning, /frameworks/kdelibs4support/cmake/modules/MacroAppendIf.cmake is written in an unsupported language. File is not indexed.

0001 # MACRO_APPEND_IF(CONDITION VAR VALUE1...VALUEN )
0002 # This convenience macro appends the values VALUE1 up to VALUEN to the list
0003 # given in VAR, but only if the variable CONDITION is TRUE:
0004 #
0005 # usage example:
0006 # IF(SOMELIB_FOUND)
0007 #   SET(my_sources ${my_sources} somefile.c someotherfile.c)
0008 # ENDIF(SOMELIB_FOUND)
0009 #
0010 # becomes:
0011 # MACRO_APPEND_IF(SOMELIB_FOUND  my_sources  somefile.c someotherfile.c)
0012 
0013 # Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org>
0014 #
0015 # Redistribution and use is allowed according to the terms of the BSD license.
0016 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
0017 
0018 macro(macro_append_if _cond _list)
0019   if(${_cond})
0020     list(APPEND ${_list} ${ARGN})
0021   endif(${_cond})
0022 endmacro(macro_append_if _cond _list)