-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CPackConfig.cmake.in
239 lines (196 loc) · 12 KB
/
CPackConfig.cmake.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
set (IN_CPACK TRUE)
set (CPACK_COMPONENTS_ALL config data include mod_include lib mod_lib test_u test_i)
set (CPACK_COMPONENT_CONFIG_DESCRIPTION "configuration data")
set (CPACK_COMPONENT_CONFIG_DISPLAY_NAME "configuration data")
set (CPACK_COMPONENT_CONFIG_HIDDEN TRUE)
#set (CPACK_COMPONENT_CONFIG_REQUIRED TRUE)
set (CPACK_COMPONENT_INCLUDE_DESCRIPTION "C++ headers")
set (CPACK_COMPONENT_INCLUDE_DISPLAY_NAME "C++ headers (library)")
set (CPACK_COMPONENT_MOD_INCLUDE_DESCRIPTION "C++ headers of the modules")
set (CPACK_COMPONENT_MOD_INCLUDE_DISPLAY_NAME "C++ headers (modules)")
set (CPACK_COMPONENT_LIB_DESCRIPTION "C++ (import) library (and DLL)")
set (CPACK_COMPONENT_LIB_DISPLAY_NAME "C++ (import) library (and DLL)")
set (CPACK_COMPONENT_MOD_LIB_DESCRIPTION "C++ (import) libraries (and DLLs) (modules)")
set (CPACK_COMPONENT_MOD_LIB_DISPLAY_NAME "C++ (import) libraries (and DLLs) (modules)")
set (CPACK_COMPONENT_TEST_I_DISPLAY_NAME "integration tests")
set (CPACK_COMPONENT_TEST_U_DISPLAY_NAME "unit tests")
#set (CPACK_COMPONENT_LIB_DEPENDS include)
#set (CPACK_COMPONENT_MOD_LIB_DEPENDS mod_include)
set (CPACK_COMPONENT_MOD_LIB_DEPENDS lib)
set (CPACK_COMPONENT_TEST_I_DEPENDS config data lib mod_lib)
set (CPACK_COMPONENT_TEST_U_DEPENDS config data lib mod_lib)
set (CPACK_COMPONENT_INCLUDE_GROUP "Development")
set (CPACK_COMPONENT_MOD_INCLUDE_GROUP "Development")
set (CPACK_COMPONENT_LIB_GROUP "Development")
set (CPACK_COMPONENT_MOD_LIB_GROUP "Development")
set (CPACK_COMPONENT_TEST_I_GROUP "Tests")
set (CPACK_COMPONENT_TEST_U_GROUP "Tests")
set (CPACK_COMPONENT_GROUP_DEVELOPMENT_DESCRIPTION "headers and (import) libraries")
set (CPACK_COMPONENT_GROUP_TESTS_DESCRIPTION "Unit and Integration Tests")
set (CPACK_ALL_INSTALL_TYPES Full Developer)
set (CPACK_COMPONENT_INCLUDE_INSTALL_TYPES Full Developer)
set (CPACK_COMPONENT_MOD_INCLUDE_INSTALL_TYPES Full Developer)
set (CPACK_COMPONENT_LIB_INSTALL_TYPES Full Developer)
set (CPACK_COMPONENT_MOD_LIB_INSTALL_TYPES Full Developer)
set (CPACK_COMPONENT_TEST_I_INSTALL_TYPES Full)
set (CPACK_COMPONENT_TEST_U_INSTALL_TYPES Full)
#set (CPACK_INCLUDE_TOPLEVEL_DIRECTORY 0)
#set (CPACK_INSTALL_COMMANDS )
if (UNIX)
set (CPACK_INSTALL_CMAKE_PROJECTS "@PROJECT_SOURCE_DIR@/build/gcc;@PROJECT_NAME@;ALL;/")
elseif (WIN32)
set (CPACK_INSTALL_CMAKE_PROJECTS
# "@PROJECT_SOURCE_DIR@/build/gcc;@PROJECT_NAME@;ALL;/
"@PROJECT_SOURCE_DIR@/build/msvc;@PROJECT_NAME@;include;/"
"@PROJECT_SOURCE_DIR@/build/msvc;@PROJECT_NAME@;mod_include;/"
"@PROJECT_SOURCE_DIR@/build/msvc;@PROJECT_NAME@;lib;/"
"@PROJECT_SOURCE_DIR@/build/msvc;@PROJECT_NAME@;mod_lib;/"
"@PROJECT_SOURCE_DIR@/build/msvc;@PROJECT_NAME@;config;/"
"@PROJECT_SOURCE_DIR@/build/msvc;@PROJECT_NAME@;data;/"
"@PROJECT_SOURCE_DIR@/build/msvc;@PROJECT_NAME@;test_u;/"
"@PROJECT_SOURCE_DIR@/build/msvc;@PROJECT_NAME@;test_i;/"
)
endif ()
#set (CPACK_INSTALL_SCRIPT )
#set (CPACK_INSTALLED_DIRECTORIES )
#set (CPACK_MONOLITHIC_INSTALL )
#set (CPACK_OUTPUT_FILE_PEFIX )
set (CPACK_OUTPUT_CONFIG_FILE "CPackConfig.cmake")
set (CPACK_PACKAGE_CHECKSUM "MD5")
set (CPACK_PACKAGE_CONTACT "[email protected]")
set (CPACK_PACKAGE_DESCRIPTION_FILE "@PROJECT_SOURCE_DIR@/README.md")
set (CPACK_PACKAGE_DESCRIPTION "@PACKAGE_DESCRIPTION@")
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "@PACKAGE_DESCRIPTION_SUMMARY@")
#set (CPACK_PACKAGE_EXECUTABLES "camsave;camera save;\
#camsource;camera source;\
#camtarget;camera target;\
#filecopy;file copy;\
#filesource;file source;\
#filetarget;file target;\
#http_get;HTTP get;\
#riffdecoder;RIFF decoder")
if (UNIX)
set (CPACK_PACKAGING_INSTALL_PREFIX /usr/local)
elseif (WIN32)
set (CPACK_PACKAGE_INSTALL_DIRECTORY "$ENV{PROGRAMFILES64}@PROJECT_NAME@")
set (CPACK_PACKAGE_INSTALL_REGISTRY_KEY "@PROJECT_NAME@")
endif ()
set (CPACK_PACKAGE_ICON "@PROJECT_SOURCE_DIR@/share/@PROJECT_NAME@_icon.png")
set (CPACK_PACKAGE_NAME "@PROJECT_NAME@")
set (CPACK_PACKAGE_VENDOR "")
set (CPACK_PACKAGE_VERSION "@VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_MICRO@")
set (CPACK_PACKAGE_VERSION_MAJOR @VERSION_MAJOR@)
set (CPACK_PACKAGE_VERSION_MINOR @VERSION_MINOR@)
set (CPACK_PACKAGE_VERSION_PATCH @VERSION_MICRO@)
# File included at cpack time, once per generator after setting CPACK_GENERATOR
# to the actual generator being used; allows per-generator setting of CPACK_*
# variables at cpack time. (${PROJECT_BINARY_DIR}/CPackOptions.cmake)
#set (CPACK_PROJECT_CONFIG_FILE )
set (CPACK_RESOURCE_FILE_LICENSE "@PROJECT_SOURCE_DIR@/LICENSE")
set (CPACK_RESOURCE_FILE_README "@PROJECT_SOURCE_DIR@/README.md")
set (CPACK_RESOURCE_FILE_WELCOME "")
#set (CPACK_SOURCE_GENERATOR )
#set (CPACK_SOURCE_IGNORE_FILES )
if (UNIX)
set (CPACK_SOURCE_OUTPUT_CONFIG_FILE "@PROJECT_SOURCE_DIR@/build/gcc/CPackSourceConfig.cmake")
elseif (WIN32)
set (CPACK_SOURCE_OUTPUT_CONFIG_FILE "@PROJECT_SOURCE_DIR@/build/msvc/CPackSourceConfig.cmake")
endif ()
set (CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")
set (CPACK_SOURCE_STRIP_FILES "")
# use CMAKE_INSTALL_PREFIX ? : CPACK_PACKAGING_INSTALL_PREFIX
set (CPACK_SET_DESTDIR FALSE)
#set (CPACK_STRIP_FILES "bin/camsource;bin/camtarget")
set (CPACK_SYSTEM_NAME ${CMAKE_SYSTEM_NAME})
set (CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR})
#set (CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}-${CMAKE_BUILD_TYPE})
#message ("package file name: \"${CPACK_PACKAGE_FILE_NAME}\"")
################################################################################
if (UNIX)
set (CPACK_TOPLEVEL_TAG "Linux-i686")
# set (CPACK_CMAKE_GENERATOR "Unix Makefiles")
set (CPACK_CMAKE_GENERATOR "Ninja")
#set (CPACK_SOURCE_GENERATOR "TGZ;TZ")
set (CPACK_SOURCE_GENERATOR "TGZ")
set (CPACK_GENERATOR "TGZ")
#set (CPACK_GENERATOR "STGZ;TGZ;TZ")
#set (CPACK_GENERATOR "DEB;TGZ")
#set (CPACK_GENERATOR "RPM;TGZ")
# set (CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION})
if ("${CPACK_GENERATOR}" STREQUAL "DEB")
set (CPACK_COMPONENTS_ALL ${CPACK_COMPONENTS_ALL} Debian)
set (CPACK_DEBIAN_PACKAGE_ARCHITECTURE ${CMAKE_SYSTEM_PROCESSOR})
# Package dependencies (use dpkg -s <packagename> to retrieve version)
#set (CPACK_DEBIAN_PACKAGE_DEPENDS )
set (CPACK_DEBIAN_PACKAGE_MAINTAINER ${CPACK_PACKAGE_CONTACT})
set (CPACK_DEBIAN_PACKAGE_NAME ${CPACK_PACKAGE_NAME})
set (CPACK_DEBIAN_PACKAGE_PRIORITY "optional")
#set (CPACK_DEBIAN_PACKAGE_RECOMMENDS )
#set (CPACK_DEBIAN_PACKAGE_SUGGESTS )
set (CPACK_DEBIAN_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION})
# This variable allow advanced user to add custom script to the control.tar.gz
# (inside the .deb archive) ${CMAKE_CURRENT_SOURCE_DIR}/postinst
# set (CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA)
# Package section (see http://packages.debian.org/stable/)
set (CPACK_DEBIAN_PACKAGE_SECTION @PACKAGE_SECTION@)
set (CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_DEBIAN_PACKAGE_ARCHITECTURE})
elseif ("${CPACK_GENERATOR}" STREQUAL "RPM")
set (CPACK_RPM_PACKAGE_SUMMARY @PACKAGE_DESCRIPTION_SUMMARY@)
set (CPACK_RPM_PACKAGE_NAME ${CPACK_PACKAGE_NAME})
set (CPACK_RPM_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION})
set (CPACK_RPM_PACKAGE_ARCHITECTURE ${CMAKE_SYSTEM_PROCESSOR})
set (CPACK_RPM_PACKAGE_RELEASE 1)
set (CPACK_RPM_PACKAGE_LICENSE "LGPL")
# The RPM package group (see /usr/share/doc/rpm-*/GROUPS)
set (CPACK_RPM_PACKAGE_GROUP @PACKAGE_SECTION@)
#set (CPACK_RPM_PACKAGE_VENDOR)
set (CPACK_RPM_PACKAGE_DESCRIPTION "@PACKAGE_DESCRIPTION@")
#set (CPACK_RPM_PACKAGE_REQUIRES )
#set (CPACK_RPM_PACKAGE_PROVIDES )
#set (CPACK_RPM_SPEC_INSTALL_POST )
#set (CPACK_RPM_SPEC_MORE_DEFINE )
#set (CPACK_RPM_USER_BINARY_SPECFILE )
#set (CPACK_RPM_GENERATE_USER_BINARY_SPECFILE_TEMPLATE )
#set (CPACK_RPM_<POST/PRE>_<UN>INSTALL_SCRIPT_FILE )
set (CPACK_RPM_PACKAGE_DEBUG 1)
endif ()
elseif (WIN32)
set (CPACK_CMAKE_GENERATOR "Visual Studio 17 2022")
#set (CPACK_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION OFF)
set (CPACK_GENERATOR "NSIS")
# There is a bug in NSI that does not handle full unix paths properly. Make
# sure there is at least one set of four (4) backslashes.
set (CPACK_PACKAGE_ICON "@PROJECT_SOURCE_DIR@/share\\\\@PROJECT_NAME@_icon.ico")
#set (CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}.${CMAKE_SYSTEM_PROCESSOR}.${CMAKE_BUILD_TYPE})
# set (CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR})
#set (CPACK_NSIS_CREATE_ICONS_EXTRA )
#set (CPACK_NSIS_COMPRESSOR )
set (CPACK_NSIS_CONTACT ${CPACK_PACKAGE_CONTACT})
#set (CPACK_NSIS_DELETE_ICONS_EXTRA )
set (CPACK_NSIS_DISPLAY_NAME "@PROJECT_NAME@")
set (CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON)
#set (CPACK_NSIS_EXECUTABLES_DIRECTORY )
set (CPACK_NSIS_EXTRA_INSTALL_COMMANDS "CreateShortCut '$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\file copy.lnk' '$INSTDIR\\\\bin\\\\filecopy.exe' '-g.\\data\\@PROJECT_NAME@\\filecopy\\filecopy.glade -l -t' $INSTDIR\\\\include\\\\libacestream_icon.ico 0 SW_SHOWNORMAL ALT|CONTROL|SHIFT|F1 'file copy'
CreateShortCut '$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\file source.lnk' '$INSTDIR\\\\bin\\\\filesource.exe' '-g.\\data\\@PROJECT_NAME@\\filestream\\source.glade -l -t' $INSTDIR\\\\include\\\\libacestream_icon.ico 0 SW_SHOWNORMAL ALT|CONTROL|SHIFT|F3 'filestream source'
CreateShortCut '$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\file target.lnk' '$INSTDIR\\\\bin\\\\filetarget.exe' '-g.\\data\\@PROJECT_NAME@\\filestream\\target.glade -l -t' $INSTDIR\\\\include\\\\libacestream_icon.ico 0 SW_SHOWNORMAL ALT|CONTROL|SHIFT|F4 'filestream target'
CreateShortCut '$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\camera save.lnk' '$INSTDIR\\\\bin\\\\camsave.exe' '-g.\\data\\@PROJECT_NAME@\\camsave\\camsave.glade -l -t' $INSTDIR\\\\include\\\\libacestream_icon.ico 0 SW_SHOWNORMAL ALT|CONTROL|SHIFT|F2 'camera save'
CreateShortCut '$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\camera source.lnk' '$INSTDIR\\\\bin\\\\camsource.exe' '-g.\\data\\@PROJECT_NAME@\\camstream\\source.glade -l -t' $INSTDIR\\\\include\\\\libacestream_icon.ico 0 SW_SHOWNORMAL ALT|CONTROL|SHIFT|F5 'camstream source'
CreateShortCut '$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\camera target.lnk' '$INSTDIR\\\\bin\\\\camtarget.exe' '-g.\\data\\@PROJECT_NAME@\\camstream\\target.glade -l -t' $INSTDIR\\\\include\\\\libacestream_icon.ico 0 SW_SHOWNORMAL ALT|CONTROL|SHIFT|F6 'camstream target'")
#set (CPACK_NSIS_EXTRA_PREINSTALL_COMMANDS "CreateShortCut \\\"$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\VSXu Player Fullscreen.lnk\\\" \\\"$INSTDIR\\\\.\\\\vsxu_player.exe \\\" -f")
#set (CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "Delete \\\"$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\VSXu Player Fullscreen.lnk\\\")
set (CPACK_NSIS_HELP_LINK "http:\\\\\\\\www.github.com\\\\esohns\\\\@PROJECT_NAME@")
# The default installation directory presented to the end user by the NSIS installer
set (CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES64")
#set (CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\camsource.exe")
#set (CPACK_NSIS_INSTALLER_MUI_ICON_CODE )
#set (CPACK_NSIS_MENU_LINKS "doc/cmake-${CMAKE_VERSION_MAJOR}.${CMAKE_VERSION_MINOR}/cmake.html" "CMake Help")
set (CPACK_NSIS_MENU_LINKS "${CPACK_NSIS_HELP_LINK}" "@PROJECT_NAME@ Project Web Site")
set (CPACK_NSIS_MODIFY_PATH ON)
set (CPACK_NSIS_MUI_ICON ${CPACK_PACKAGE_ICON})
#set (CPACK_NSIS_MUI_FINISHPAGE_RUN )
set (CPACK_NSIS_MUI_UNIICON ${CPACK_PACKAGE_ICON})
set (CPACK_NSIS_PAGE_COMPONENTS " ")
# Title displayed at the top of the installer
set (CPACK_NSIS_PACKAGE_NAME "@PROJECT_NAME@ @VERSION_MAJOR@.@VERSION_MINOR@")
set (CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\www.github.com\\\\esohns\\\\@PROJECT_NAME@")
endif ()