From 8e0e31bd42c4159c559db15de45f7ae94b9b68d2 Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Sat, 12 Nov 2011 19:20:58 +0100 Subject: [PATCH] new version layout --- CMakeLists.txt | 8 ++++++++ src/core/snoreserver.cpp | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ffec83d..1119b3a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,8 +2,16 @@ project( SnoreNotify ) cmake_minimum_required( VERSION 2.8 ) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake/modules ${CMAKE_PREFIX_PATH}/share/apps/cmake/modules) +####################################################################### option(WITH_FREEDESKTOP_FRONTEND "Build the freedesktop frontend" OFF) option(WITH_GROWL_BACKEND "Build the Growl backend" ON) +####################################################################### + +set(SNORE_VERSION_MAJOR 0) +set(SNORE_VERSION_MINOR 3) +set(SNORE_VERSION_SUFFIX pre) +add_definitions(-DSNORE_VERSION_MAJOR="${SNORE_VERSION_MAJOR}" -DSNORE_VERSION_MINOR="${SNORE_VERSION_MINOR}" -DSNORE_VERSION_SUFFIX="${SNORE_VERSION_SUFFIX}") +###################################################################### set(CMAKE_INCLUDE_CURRENT_DIR ON) diff --git a/src/core/snoreserver.cpp b/src/core/snoreserver.cpp index 53ee780..7c2f71d 100644 --- a/src/core/snoreserver.cpp +++ b/src/core/snoreserver.cpp @@ -28,7 +28,7 @@ namespace Snore{ QString const SnoreServer::version(){ - return "0.15"; + return QString(SNORE_VERSION_MAJOR).append(".").append(SNORE_VERSION_MINOR).append(SNORE_VERSION_SUFFIX); } QString const SnoreServer::snoreTMP(){