Build binary and source package installers.Introduction The CPack module generates a file CPackConfig.cmake intended for use in a subsequent run of the cpack program where it steers the generation of installers or/and source packages. Inclusion of the CPack module adds two new build targets, ...
set(CPACK_SOURCE_PACKAGE_FILE_NAME"cmake-${CMake_VERSION}") #Installers for 32- vs. 64-bit CMake: #- Root install directory (displayed to end user at installer-run time) #- "NSIS package/display name" (text used in the installer GUI) ...
set(CPACK_PACKAGE_NAME wireshark) set(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${CPACK_SYSTEM_NAME}-${CPACK_PACKAGE_VERSION}) # Win: WIX, NSIS, ZIP, SOURCE_ZIP, CYGWIN_BINARY, SOURCE_CYGWIN, # Linux/Unix: DEB, RPM, STGZ, TBZ2, TZ, SOURCE_TZ, SOURCE_TGZ ...
set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME_lower}-${FREERDP_VERSION_FULL}-${CPACK_SYSTEM_NAME}") set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME_lower}-${FREERDP_VERSION_FULL}-${CPACK_SYSTEM_NAME}") set(CPACK_PACKAGE_NAME "FreeRDP") set(CPACK_PACKAGE_VENDOR...
CPACK_PACKAGE_NAME: 包的名称,默认使用项目名称 CPACK_PACKAGE_VERSION : 包的版本,默认使用项目版本 CPACK_PACKAGE_DIRECTORY :cpack要打包的目录,如果没有设置,默认使用编译目录 CPACK_SOURCE_IGNORE_FILES :打包源代码时要排除的目录,默认情况下会将整个工程的目录都打包进源代码,但有些不属于代码的部分或者不...
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY"Scribus is an open source publishing application for Linux, Mac OSX and Windows") set(CPACK_PACKAGE_EXECUTABLES"scribus") set(CPACK_PACKAGE_FILE_NAME"scribus-1.4.8-") set(CPACK_PACKAGE_INSTALL_DIRECTORY"Scribus 1.4.8") ...
set(CPACK_RPM_PACKAGE_LICENSE "Apache 2.0 + Common Clause 1.0") include(CPack) 执行cmake 命令后, 你会发现当前目录下面多了两个文件CPackConfig.cmake和CPackSourceConfig.cmake。 编译完成后,执行cpack -G RPM就可将文件打包成 rpm 包,当前目录下会生成一个_CPack_Packages目录和一个以 .rpm 为后...
set(CPACK_RPM_PACKAGE_LICENSE "Apache 2.0 + Common Clause 1.0") include(CPack) 执行cmake 命令后, 你会发现当前目录下面多了两个文件CPackConfig.cmake和CPackSourceConfig.cmake。 编译完成后,执行cpack -G RPM就可将文件打包成 rpm 包,当前目录下会生成一个_CPack_Packages目录和一个以 .rpm 为后...
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} OUTPUT_VARIABLE COMMIT_ID OUTPUT_STRIP_TRAILING_WHITESPACE ) # 使用STRING 命令的 SUBSTRING 选项来截取前八个字符 string(SUBSTRING ${COMMIT_ID} 0 8 SHORT_COMMIT_ID) set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${TIMESTAMP...
set(CPACK_RPM_PACKAGE_LICENSE "Apache 2.0 + Common Clause 1.0") include(CPack) 执行cmake 命令后, 你会发现当前目录下面多了两个文件CPackConfig.cmake和CPackSourceConfig.cmake。 编译完成后,执行cpack -G RPM就可将文件打包成 rpm 包,当前目录下会生成一个_CPack_Packages目录和一个以 .rpm 为后...