GSoC/GCI Archive
Google Code-in 2012 Copyleft Games Group

Hedgewars: CMake List Append

completed by: Willie Zhu

mentors: Andrey Korotaev, Xeli, Sheepy, koda

Remember to join our IRC channel when working on this task! We are on #hedgewars at freenode.net. If you are new to IRC, read this tutorial from a past GCI participant.

Your task

CMake is our build structure: inside every CMakeLists.txt you can find a list of files to be compiled and a given set of options. Very powerful, opensource and crossplatform, visit www.cmake.org to read documentation.

When adding values to variables or lists, it is quite common to use set(VAR value ${VAR}). However this is quite inefficient and hard to read. This task involved changing all such set commands with proper list(APPEND) functions.

Deliverable

A working patch, that applies cleanly to our source tree. This patch should be in the form of a pull from clone, hg export or unified diff format (in order of preference) implementing the functionality required.