Improve appending of elements to CMake lists

[The command "list(APPEND ...)" can be executed more efficient](http://cmake.org/Wiki/CMake_Performance_Tips#Use_LIST.28APPEND_....29 "Efficient extension of CMake lists") than the setting of CMake variables as before.