Use TDE cmake macro to set version

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/7/head
Michele Calgaro 2 years ago
parent d48180a7ac
commit 32f2991d13
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -34,6 +34,11 @@ include( FindPkgConfig )
include( TDEMacros ) include( TDEMacros )
##### set version number ########################
tde_set_project_version( )
##### setup install paths ####################### ##### setup install paths #######################
include( TDESetupPaths ) include( TDESetupPaths )
@ -64,11 +69,10 @@ ENDIF(BUILD_TESTS)
##### versioning ################################ ##### versioning ################################
SET(BASE_VERSION 1.0.4) SET(BASE_VERSION 1.0.4)
SET(VERSION "$ENV{KDESVN_VERSION}") SET(KDESVN_VERSION "$ENV{KDESVN_VERSION}")
IF(NOT VERSION) IF(NOT KDESVN_VERSION)
SET(VERSION ${BASE_VERSION}) SET(KDESVN_VERSION ${BASE_VERSION})
ENDIF(NOT VERSION) ENDIF(NOT KDESVN_VERSION)
SET(KDESVN_VERSION \"${VERSION}\")
##### configure checks ########################## ##### configure checks ##########################

@ -1,7 +1,7 @@
#ifndef _KDESVN_CONFIG_H #ifndef _KDESVN_CONFIG_H
#define _KDESVN_CONFIG_H #define _KDESVN_CONFIG_H
#cmakedefine VERSION @KDESVN_VERSION@ #cmakedefine VERSION "@KDESVN_VERSION@"
#cmakedefine SQLITE_FOUND #cmakedefine SQLITE_FOUND
#cmakedefine HAS_SETENV #cmakedefine HAS_SETENV

Loading…
Cancel
Save