|
|
@ -44,11 +44,11 @@ SET (VERSION_MINOR "7")
|
|
|
|
SET (VERSION_PATCH "0")
|
|
|
|
SET (VERSION_PATCH "0")
|
|
|
|
# comment out the next line for a public release
|
|
|
|
# comment out the next line for a public release
|
|
|
|
#SET (VERSION_SUFFIX "svn")
|
|
|
|
#SET (VERSION_SUFFIX "svn")
|
|
|
|
SET (VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
|
|
|
|
SET (PACKAGE_VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
|
|
|
|
IF(VERSION_SUFFIX)
|
|
|
|
IF(VERSION_SUFFIX)
|
|
|
|
SET (VERSION "${VERSION}-${VERSION_SUFFIX}")
|
|
|
|
SET (PACKAGE_VERSION "${PACKAGE_VERSION}-${VERSION_SUFFIX}")
|
|
|
|
ENDIF(VERSION_SUFFIX)
|
|
|
|
ENDIF(VERSION_SUFFIX)
|
|
|
|
ADD_DEFINITIONS(-D'VERSION="${VERSION}"')
|
|
|
|
ADD_DEFINITIONS(-D'VERSION="${PACKAGE_VERSION}"')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### include our cmake modules #################
|
|
|
|
##### include our cmake modules #################
|
|
|
@ -56,6 +56,11 @@ ADD_DEFINITIONS(-D'VERSION="${VERSION}"')
|
|
|
|
include( TDEMacros )
|
|
|
|
include( TDEMacros )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### set version number ########################
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tde_set_project_version( )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### setup install paths #######################
|
|
|
|
##### setup install paths #######################
|
|
|
|
|
|
|
|
|
|
|
|
include( TDESetupPaths )
|
|
|
|
include( TDESetupPaths )
|
|
|
@ -115,5 +120,5 @@ tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
|
|
|
|
configure_file( config.h.cmake config.h @ONLY )
|
|
|
|
configure_file( config.h.cmake config.h @ONLY )
|
|
|
|
|
|
|
|
|
|
|
|
# create and install the version file
|
|
|
|
# create and install the version file
|
|
|
|
FILE(WRITE "${CMAKE_BINARY_DIR}/version.txt" "${VERSION}\n")
|
|
|
|
FILE(WRITE "${CMAKE_BINARY_DIR}/version.txt" "${PACKAGE_VERSION}\n")
|
|
|
|
INSTALL( FILES "${CMAKE_BINARY_DIR}/version.txt" DESTINATION ${DATA_INSTALL_DIR}/rosegarden )
|
|
|
|
INSTALL( FILES "${CMAKE_BINARY_DIR}/version.txt" DESTINATION ${DATA_INSTALL_DIR}/rosegarden )
|
|
|
|