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