From: Manuel Nickschas Date: Fri, 16 Nov 2018 22:09:50 +0000 (+0100) Subject: cmake: Move version setup into a separate .cmake file X-Git-Tag: test-travis-01~95 X-Git-Url: https://git.quassel-irc.org/?a=commitdiff_plain;ds=inline;h=0fcf6adf1ca3a256bd0e5c1db40507874b9d65a8;hp=0fcf6adf1ca3a256bd0e5c1db40507874b9d65a8;p=quassel.git 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. ---