use LIST(APPEND...) instead of SET(var ${var} ...)

The `LIST(APPEND ...)` approach is much faster and recommended since CMake 2.4, see http://www.cmake.org/Wiki/CMake_Performance_Tips#Use_LIST.28APPEND_....29.