Browse code

templatify mulle-bootstrap

Nat! authored on 11-10-2017 14:39:19
Showing 3 changed files
... ...
@@ -110,34 +110,10 @@ PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
110 110
             WORLD_EXECUTE WORLD_READ
111 111
 DESTINATION "libexec/mulle-bootstrap")
112 112
 
113
-#
114
-# CPack and project specific stuff
115
-#
116
-######
117
-
118
-set( CPACK_PACKAGE_NAME "mulle-bootstrap")
119
-set( CPACK_PACKAGE_VERSION "${PROJECT_VERSION}")
120
-set( CPACK_PACKAGE_CONTACT "Nat! <nat@mulle-kybernetik.de>")
121
-set( CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README.md")
122
-set( CPACK_PACKAGE_DESCRIPTION_SUMMARY "👢 Cross platform dependency manager - using bash and cmake")
123
-set( CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
124
-set( CPACK_STRIP_FILES false)
125
-
126
-# stuff needed for Debian
127
-# memo: its impossible to check for chosen generator here
128
-#
129
-# CPackDeb doesn't produce 100% proper debian file unfortunately
130
-#
131
-set( CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://github.com/mulle-nat/mulle-bootstrap")
132
-# not strictly required
133
-#set( CPACK_DEBIAN_PACKAGE_DEPENDS "cmake (>= 3.0.0)")
134
-
135
-# stuff needed for RPM
136
-
137
-set( CPACK_RPM_PACKAGE_VENDOR "Mulle kybernetiK")
138 113
 
139 114
 ######
140 115
 #
141 116
 # must be after CPACK_PACKAGE_VERSION
117
+include( CMakePackage.txt)
142 118
 include( CPack)
143 119
 
144 120
new file mode 100644
... ...
@@ -0,0 +1,27 @@
1
+#
2
+# CPack and project specific stuff
3
+#
4
+######
5
+
6
+set( CPACK_PACKAGE_NAME "${PROJECT_NAME}")
7
+set( CPACK_PACKAGE_VERSION "${PROJECT_VERSION}")
8
+set( CPACK_PACKAGE_CONTACT "Nat! <nat@mulle-kybernetik.de>")
9
+set( CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README.md")
10
+set( CPACK_PACKAGE_DESCRIPTION_SUMMARY "👢 Cross platform dependency manager for developers")
11
+set( CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
12
+set( CPACK_STRIP_FILES false)
13
+
14
+# stuff needed for Debian
15
+# memo: its impossible to check for chosen generator here
16
+#
17
+# CPackDeb doesn't produce 100% proper debian file unfortunately
18
+#
19
+set( CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://github.com/mulle-objc/${PROJECT_NAME}")
20
+# not strictly required
21
+#set( CPACK_DEBIAN_PACKAGE_DEPENDS "cmake (>= 3.0.0)")
22
+
23
+# stuff needed for RPM
24
+
25
+set( CPACK_RPM_PACKAGE_VENDOR "mulle-objc community")
26
+
27
+
... ...
@@ -4,6 +4,6 @@
4 4
 
5 5
 post_release()
6 6
 {
7
-   mulle-homebrew-debian
7
+   exekutor mulle-homebrew-debian
8 8
 }
9 9