Autocreate a good package for steam if steam build
This commit is contained in:
parent
7ee85ecdb0
commit
00a15d6a49
|
@ -367,12 +367,16 @@ set(CPACK_PACKAGE_VERSION_MAJOR ${breakhack_MAJOR_VERSION})
|
|||
set(CPACK_PACKAGE_VERSION_MINOR ${breakhack_MINOR_VERSION})
|
||||
set(CPACK_PACKAGE_VERSION_PATCH ${breakhack_PATCH_VERSION})
|
||||
set(CPACK_PACKAGE_INSTALL_DIRECTORY "BreakHack")
|
||||
set(CPACK_PACKAGE_CHECKSUM "MD5")
|
||||
if (WIN32)
|
||||
set(CPACK_PACKAGE_FILE_NAME "breakhack-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}-win32")
|
||||
else ()
|
||||
set(CPACK_PACKAGE_FILE_NAME "breakhack-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
|
||||
endif ()
|
||||
set(CPACK_PACKAGE_CHECKSUM "MD5")
|
||||
if (STEAM)
|
||||
set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY OFF)
|
||||
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILENAME}-steambuild")
|
||||
endif ()
|
||||
|
||||
if(UNIX)
|
||||
set(CPACK_GENERATOR TGZ)
|
||||
|
|
Loading…
Reference in New Issue