Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Schmidt <dev@dominik-schmidt.de>2012-04-26 15:58:22 +0400
committerDominik Schmidt <dev@dominik-schmidt.de>2012-04-26 15:58:22 +0400
commitaca5eae6d013259195d2f8eef3de94c5d1e84268 (patch)
tree359f9f3df593decd3f986d277f246b7ab070616c /OwnCloudCPack.cmake
parent31b636a4232659c04dff964018da3a2e692f3b84 (diff)
Improve version handling in cmake
Diffstat (limited to 'OwnCloudCPack.cmake')
-rw-r--r--OwnCloudCPack.cmake11
1 files changed, 6 insertions, 5 deletions
diff --git a/OwnCloudCPack.cmake b/OwnCloudCPack.cmake
index e5ff849df..ca7ae18e6 100644
--- a/OwnCloudCPack.cmake
+++ b/OwnCloudCPack.cmake
@@ -4,10 +4,11 @@ set( CPACK_PACKAGE_CONTACT "Dominik Schmidt <domme@tomahawk-player.org>" )
set( APPLICATION_NAME "ownCloud Client")
-set( CPACK_PACKAGE_VERSION_MAJOR 1 )
-set( CPACK_PACKAGE_VERSION_MINOR 0 )
-set( CPACK_PACKAGE_VERSION_PATCH 1 )
-set( CPACK_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH} )
+include( VERSION.cmake )
+set( CPACK_PACKAGE_VERSION_MAJOR ${VERSION_MAJOR} )
+set( CPACK_PACKAGE_VERSION_MINOR ${VERSION_MINOR} )
+set( CPACK_PACKAGE_VERSION_PATCH ${VERSION_PATCH} )
+set( CPACK_PACKAGE_VERSION ${VERSION} )
if(APPLE)
set( CPACK_GENERATOR "DragNDrop" )
@@ -34,7 +35,7 @@ endif()
if(WIN32)
- set( CPACK_PACKAGE_FILE_NAME owncloud-client-setup )
+ set( CPACK_PACKAGE_FILE_NAME owncloud-client-${CPACK_PACKAGE_VERSION}-setup )
# Package file name without extension. Also a directory of installer cmake-2.5.0-Linux-i686
# CPACK_GENERATOR CPack generator to be used STGZ;TGZ;TZ
# CPACK_INCLUDE_TOPLEVEL_DIRECTORY Controls whether CPack adds a top-level directory, usually of the form ProjectName-Version-OS, to the top of package tree. 0 to disable, 1 to enable