CMakeLists.txt
changeset 584 f381705f1aeb
parent 546 0e7cc3fb05cd
child 605 2651c3fe4567
--- a/CMakeLists.txt	Wed Aug 22 16:37:51 2007 +0000
+++ b/CMakeLists.txt	Fri Aug 24 20:24:29 2007 +0000
@@ -16,12 +16,15 @@
 add_subdirectory(hedgewars)
 add_subdirectory(share)
 
+# CPack vars
+
 set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Hedgewars, a turn-based strategy")
 set(CPACK_PACKAGE_VENDOR "Hedgewars")
 set(CPACK_PACKAGE_VERSION_MAJOR "0")
 set(CPACK_PACKAGE_VERSION_MINOR "9")
 set(CPACK_PACKAGE_VERSION_PATCH "0")
 set(CPACK_PACKAGE_FILE_NAME "hedgewars-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
+set(CPACK_SOURCE_PACKAGE_FILE_NAME "hedgewars-src-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
 set(CPACK_PACKAGE_EXECUTABLES "hedgewars" "hedgewars")
 set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
 set(CPACK_PACKAGE_INSTALL_DIRECTORY "Hedgewars ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
@@ -36,5 +39,43 @@
 	set(CPACK_STRIP_FILES "bin/hedgewars;bin/hwengine")
 endif(WIN32 AND NOT UNIX)
 
+set(CPACK_SOURCE_IGNORE_FILES
+	"~"
+	"\\\\.svn"
+	"\\\\.exe$"
+	"\\\\.a$"
+	"\\\\.dll$"
+	"\\\\.xcf$"
+	"\\\\.cxx$"
+	"\\\\.db$"
+	"\\\\.cfg$"
+	"\\\\.dof$"
+	"\\\\.cmake$"
+	"\\\\.layout$"
+	"\\\\.zip$"
+	"\\\\.gz$"
+	"\\\\.bz2$"
+	"Makefile"
+	"CMakeFiles"
+	"debug"
+	"release"
+	"Debug$"
+	"Release$"
+	"proto.inc$"
+	"hwconsts.cpp$"
+	"playlist.inc$"
+	"^${PROJECT_SOURCE_DIR}/bin/."
+	"^${PROJECT_SOURCE_DIR}/tools"
+	"^${PROJECT_SOURCE_DIR}/docs"
+	"^${PROJECT_SOURCE_DIR}/Graphics"
+	"^${PROJECT_SOURCE_DIR}/realtest"
+	"^${PROJECT_SOURCE_DIR}/tmp"
+	"^${PROJECT_SOURCE_DIR}/utils"
+	"^${PROJECT_SOURCE_DIR}/share/hedgewars/Data/Maps/test"
+	"^${PROJECT_SOURCE_DIR}/share/hedgewars/Data/Themes/ethereal"
+	"^${PROJECT_SOURCE_DIR}/install_manifest.txt"
+	"^${PROJECT_SOURCE_DIR}/CMakeCache.txt"
+	"^${PROJECT_SOURCE_DIR}/install_manifest.txt"
+)
+
 include(CPack)
-