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

Hedgewars: Move Freepascal discovery code into a CMake module

completed by: Bryan Dunsmore

mentors: koda, Andrey Korotaev, Xeli, Sheepy

hedgewars
cmake
freepascal

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.

Because CMake doesn't support Freepascal, we had to add a lot of discovery lines inside our list of file. Your task is to move such code from hedgewars/CMakeLists.txt to its proper module FindFreepascal.cmake. Note that all functionality must be preserved.

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.