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:
authorDaniel Molkentin <danimo@linux-l86e.site>2012-09-20 11:19:26 +0400
committerDaniel Molkentin <danimo@owncloud.com>2012-09-20 19:31:18 +0400
commit663a1886e908661ecf1097c5c9b76ecad8670d2e (patch)
treeeca3b6e28937d6ffbeb206201d85ec0ed8ec4352 /OwnCloudCPack.cmake
parent1a603bd8002e8f55759a25bb77bd43060c59bb18 (diff)
CMake: Centralize all application-specific parameters.
Diffstat (limited to 'OwnCloudCPack.cmake')
-rw-r--r--OwnCloudCPack.cmake8
1 files changed, 6 insertions, 2 deletions
diff --git a/OwnCloudCPack.cmake b/OwnCloudCPack.cmake
index ca7ae18e6..309445c54 100644
--- a/OwnCloudCPack.cmake
+++ b/OwnCloudCPack.cmake
@@ -2,7 +2,11 @@ include( InstallRequiredSystemLibraries )
set( CPACK_PACKAGE_CONTACT "Dominik Schmidt <domme@tomahawk-player.org>" )
-set( APPLICATION_NAME "ownCloud Client")
+if ( EXISTS "${CMAKE_SOURCE_DIR}/OEM.cmake" )
+ include ( "${CMAKE_SOURCE_DIR}/OEM.cmake" )
+else ()
+ include ( "${CMAKE_SOURCE_DIR}/OWNCLOUD.cmake" )
+endif()
include( VERSION.cmake )
set( CPACK_PACKAGE_VERSION_MAJOR ${VERSION_MAJOR} )
@@ -35,7 +39,7 @@ endif()
if(WIN32)
- set( CPACK_PACKAGE_FILE_NAME owncloud-client-${CPACK_PACKAGE_VERSION}-setup )
+ set( CPACK_PACKAGE_FILE_NAME ${APPLICATION_SHORTNAME}-${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