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 )
##### set version number ########################
tde_set_project_version( )
##### setup install paths #######################
include( TDESetupPaths )
@ -64,11 +69,10 @@ ENDIF(BUILD_TESTS)
##### versioning ################################
SET(BASE_VERSION 1.0.4)
SET(VERSION "$ENV{KDESVN_VERSION}")
IF(NOT VERSION)
SET(VERSION ${BASE_VERSION})
ENDIF(NOT VERSION)
SET(KDESVN_VERSION \"${VERSION}\")
SET(KDESVN_VERSION "$ENV{KDESVN_VERSION}")
IF(NOT KDESVN_VERSION)
SET(KDESVN_VERSION ${BASE_VERSION})
ENDIF(NOT KDESVN_VERSION)
##### configure checks ##########################

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

Loading…
Cancel
Save