new version layout

This commit is contained in:
Patrick von Reth 2011-11-12 19:20:58 +01:00
parent a6303e005c
commit 8e0e31bd42
2 changed files with 9 additions and 1 deletions

View File

@ -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)

View File

@ -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(){