cmake: Move version setup into a separate .cmake file
authorManuel Nickschas <sputnick@quassel-irc.org>
Fri, 16 Nov 2018 22:09:50 +0000 (23:09 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 18 Nov 2018 10:06:43 +0000 (11:06 +0100)
commit0fcf6adf1ca3a256bd0e5c1db40507874b9d65a8
treece5d96c6fc3c0332c111b616444d31ee3d2271eb
parentd9c471f91a6c31863e9fe805a5575ec3a308e7bc
cmake: Move version setup into a separate .cmake file

Introduce a new QuasselVersion.cmake that contains the hard-coded
version, as well as the code for retrieving version information from
git (if available). This file also sets up version.h with the given
information. Remove the corresponding code from the main
CMakeLists.txt.

Output the git revision at configure time if available, which helps
when analyzing build logs.
CMakeLists.txt
cmake/QuasselVersion.cmake [new file with mode: 0644]