From 4405a53cf3b669e84b1d953d35e89ec29b916293 Mon Sep 17 00:00:00 2001 From: bunnei Date: Wed, 23 Apr 2014 18:43:57 -0700 Subject: added scm rev generation on Linux/cmake --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index ed678d61..83a819a7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,6 +29,12 @@ if(NOT DISABLE_QT4) endif() endif() +# generate git revision information +list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules/") +include(GetGitRevisionDescription) +get_git_head_revision(GIT_REF_SPEC GIT_REV) +git_describe(GIT_DESC --always --long --dirty) + # external includes include_directories(${OPENGL_INCLUDE_DIR}) -- cgit v1.2.3