Improve source package generator, remove unused "patch" version level
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Sat, 14 Mar 2009 21:33:52 +0000 (22:33 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Sat, 14 Mar 2009 21:33:52 +0000 (22:33 +0100)
CMakeLists.txt

index b447b3f..a2bcb9b 100644 (file)
@@ -1,8 +1,7 @@
 project(ftdi_eeprom)
 set(MAJOR_VERSION 0)
 set(MINOR_VERSION 4)
-set(PATCH_VERSION 0)
-set(VERSION_STRING ${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION})
+set(VERSION_STRING ${MAJOR_VERSION}.${MINOR_VERSION})
 set(VERSION ${MAJOR_VERSION}.${MINOR_VERSION})
 
 # CMake
@@ -58,6 +57,10 @@ if(${WIN32})
   set(CPACK_NSIS_MODIFY_PATH             "ON")
 endif(${WIN32})
 
+set(CPACK_SOURCE_GENERATOR             TGZ)
+set(CPACK_SOURCE_IGNORE_FILES          "\\\\.git")
+set(CPACK_SOURCE_PACKAGE_FILE_NAME     ${CPACK_PACKAGE_FILE_NAME})
+
 set(CPACK_RESOURCE_FILE_LICENSE        ${CMAKE_SOURCE_DIR}/COPYING)
 
 # Subdirectories