Rex Dieter 29094f2
From 32104d1072788f1343d0bfbbf0fc113148598878 Mon Sep 17 00:00:00 2001
Rex Dieter 29094f2
From: Benjamin Reed <ranger@befunk.com>
Rex Dieter 29094f2
Date: Fri, 29 May 2009 14:13:21 +0000
Rex Dieter 29094f2
Subject: [PATCH 16/33] move the cpack bits into a separate cmake file
Rex Dieter 29094f2
Rex Dieter 29094f2
svn path=/trunk/kdesupport/automoc/; revision=974500
Rex Dieter 29094f2
---
Rex Dieter 29094f2
 Automoc4CPack.cmake | 13 +++++++++++++
Rex Dieter 29094f2
 CMakeLists.txt      | 14 ++------------
Rex Dieter 29094f2
 2 files changed, 15 insertions(+), 12 deletions(-)
Rex Dieter 29094f2
 create mode 100644 Automoc4CPack.cmake
Rex Dieter 29094f2
Rex Dieter 29094f2
diff --git a/Automoc4CPack.cmake b/Automoc4CPack.cmake
Rex Dieter 29094f2
new file mode 100644
Rex Dieter 29094f2
index 0000000..63f5167
Rex Dieter 29094f2
--- /dev/null
Rex Dieter 29094f2
+++ b/Automoc4CPack.cmake
Rex Dieter 29094f2
@@ -0,0 +1,13 @@
Rex Dieter 29094f2
+set(CPACK_PACKAGE_VENDOR "KDE")
Rex Dieter 29094f2
+set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Automatic moc for Qt 4 packages")
Rex Dieter 29094f2
+set(CPACK_PACKAGE_VERSION_MAJOR ${AUTOMOC4_VERSION_MAJOR})
Rex Dieter 29094f2
+set(CPACK_PACKAGE_VERSION_MINOR ${AUTOMOC4_VERSION_MINOR})
Rex Dieter 29094f2
+set(CPACK_PACKAGE_VERSION_PATCH ${AUTOMOC4_VERSION_PATCH})
Rex Dieter 29094f2
+if (APPLE)
Rex Dieter 29094f2
+	set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/cpack/README.txt")
Rex Dieter 29094f2
+	set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/cpack/LICENSE.txt")
Rex Dieter 29094f2
+	set(CPACK_SET_DESTDIR ON)
Rex Dieter 29094f2
+   set(CPACK_PACKAGE_RELOCATABLE OFF)
Rex Dieter 29094f2
+endif (APPLE)
Rex Dieter 29094f2
+
Rex Dieter 29094f2
+include(CPack)
Rex Dieter 29094f2
diff --git a/CMakeLists.txt b/CMakeLists.txt
Rex Dieter 29094f2
index bb8a9d3..04e5fa7 100644
Rex Dieter 29094f2
--- a/CMakeLists.txt
Rex Dieter 29094f2
+++ b/CMakeLists.txt
Rex Dieter 29094f2
@@ -13,18 +13,8 @@ endif (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_C_COMPILER MATCHES "icc")
Rex Dieter 29094f2
 # set the current version number
Rex Dieter 29094f2
 include(Automoc4Version.cmake)
Rex Dieter 29094f2
 
Rex Dieter 29094f2
-set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Automatic moc for Qt 4 packages")
Rex Dieter 29094f2
-set(CPACK_PACKAGE_VERSION_MAJOR ${AUTOMOC4_VERSION_MAJOR})
Rex Dieter 29094f2
-set(CPACK_PACKAGE_VERSION_MINOR ${AUTOMOC4_VERSION_MINOR})
Rex Dieter 29094f2
-set(CPACK_PACKAGE_VERSION_PATCH ${AUTOMOC4_VERSION_PATCH})
Rex Dieter 29094f2
-if (APPLE)
Rex Dieter 29094f2
-	set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/cpack/README.txt")
Rex Dieter 29094f2
-	set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/cpack/LICENSE.txt")
Rex Dieter 29094f2
-	set(CPACK_SET_DESTDIR ON)
Rex Dieter 29094f2
-   set(CPACK_PACKAGE_RELOCATABLE OFF)
Rex Dieter 29094f2
-endif (APPLE)
Rex Dieter 29094f2
-
Rex Dieter 29094f2
-include(CPack)
Rex Dieter 29094f2
+# set up packaging
Rex Dieter 29094f2
+include(Automoc4CPack.cmake)
Rex Dieter 29094f2
 
Rex Dieter 29094f2
 configure_file(automoc4_config.h.in ${CMAKE_CURRENT_BINARY_DIR}/automoc4_config.h)
Rex Dieter 29094f2
 
Rex Dieter 29094f2
-- 
Rex Dieter 29094f2
2.4.3
Rex Dieter 29094f2