Skip to content

Commit

Permalink
Add zip target for easy distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
bkloster committed May 20, 2013
1 parent b4eb665 commit 3746e74
Show file tree
Hide file tree
Showing 4 changed files with 667 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -362,3 +362,16 @@ elseif(UNIX)

endif()

###############################################################################
# CPack
###############################################################################

configure_file(${CMAKE_SOURCE_DIR}/cpack/zip.cmake.in
"${CMAKE_CURRENT_BINARY_DIR}/cpack/zip.cmake" @ONLY
)

add_custom_target(zip
COMMAND cpack --config "${CMAKE_CURRENT_BINARY_DIR}/cpack/zip.cmake"
DEPENDS Thrive
)

16 changes: 16 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Thrive Game
Copyright (C) 2013 Revolutionary Games

Thrive is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Thrive is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Thrive. If not, see <http://www.gnu.org/licenses/>.

18 changes: 18 additions & 0 deletions cpack/zip.cmake.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} @CMAKE_SOURCE_DIR@/cmake_modules)

SET(CPACK_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
SET(CPACK_GENERATOR "ZIP")
SET(CPACK_INSTALL_CMAKE_PROJECTS
"@CMAKE_BINARY_DIR@;Thrive;ALL;/"
)
#SET(CPACK_PACKAGE_CONTACT "[email protected]")
SET(CPACK_PACKAGE_DESCRIPTION_FILE "@CMAKE_SOURCE_DIR@/README.md")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Evolve your own species")
SET(CPACK_PACKAGE_FILE_NAME "Thrive_Setup")
SET(CPACK_PACKAGE_NAME "Thrive")
SET(CPACK_PACKAGE_VENDOR "Revolutionary Games")
SET(CPACK_PACKAGE_VERSION "@THRIVE_VERSION@")
SET(CPACK_RESOURCE_FILE_LICENSE "@CMAKE_SOURCE_DIR@/LICENSE.txt")
SET(CPACK_RESOURCE_FILE_README "@CMAKE_SOURCE_DIR@/README.md")

SET(CPACK_PACKAGE_EXECUTABLE "Thrive;Thrive")
Loading

0 comments on commit 3746e74

Please sign in to comment.