diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-06-26 12:55:44 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-06-26 13:12:26 +0900 |
commit | 66bfbbfb85cb60bdff46d403502fe4afaebb2f77 (patch) | |
tree | 8079fa57809a3bbbf4796de004c39416fc6e835c /CMakeLists.txt | |
parent | f8ab981f0d478addb25d1d30a2905273f375e29f (diff) | |
download | rosegarden-66bfbbfb85cb60bdff46d403502fe4afaebb2f77.tar.gz rosegarden-66bfbbfb85cb60bdff46d403502fe4afaebb2f77.zip |
Use TDE cmake macro to set version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit e9246d5e4334ae437b00243e1e16184088352718)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3aaf801..1dd04ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,11 +44,11 @@ SET (VERSION_MINOR "7") SET (VERSION_PATCH "0") # comment out the next line for a public release #SET (VERSION_SUFFIX "svn") -SET (VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}) +SET (PACKAGE_VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}) IF(VERSION_SUFFIX) - SET (VERSION "${VERSION}-${VERSION_SUFFIX}") + SET (PACKAGE_VERSION "${PACKAGE_VERSION}-${VERSION_SUFFIX}") ENDIF(VERSION_SUFFIX) -ADD_DEFINITIONS(-D'VERSION="${VERSION}"') +ADD_DEFINITIONS(-D'VERSION="${PACKAGE_VERSION}"') ##### include our cmake modules ################# @@ -56,6 +56,11 @@ ADD_DEFINITIONS(-D'VERSION="${VERSION}"') include( TDEMacros ) +##### set version number ######################## + +tde_set_project_version( ) + + ##### setup install paths ####################### include( TDESetupPaths ) @@ -115,5 +120,5 @@ tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po ) configure_file( config.h.cmake config.h @ONLY ) # 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 ) |