它将覆盖在 CPackConfig.cmake 文件中设置的值或从 CPACK_PACKAGE_VERSION_MAJOR、CPACK_PACKAGE_VERSION_MINOR 和CPACK_PACKAGE_VERSION_PATCH 自动计算的值。 -B<包目录> 覆盖/定义 CPACK_PACKAGE_DIRECTORY,这控制 CPack 执行其打包工作的目录。结果包默认将在此位置创建,并且在该目录下也会创建一个 _C...
设置或覆盖 CPACK_PACKAGE_VERSION 变量的值,这个变量表示包的版本信息,由Major, Minor和Patch三个字段组成。 -B 设置或覆盖 CPACK_PACKAGE_DIRECTORY 变量的值,该变量控制CPack将执行打包工作的目录。默认情况下,将在此目录下生成包。 --vendor 设置或覆盖 CPACK_PACKAGE_VENDOR 变量的值。 注:各种cpack参数的...
# 打包include(InstallRequiredSystemLibraries)set(CPACK_RESOURCE_FILE_LICENSE"${CMAKE_CURRENT_SOURCE_DIR}/License.txt")set(CPACK_PACKAGE_VERSION_MAJOR"${${PROJECT_NAME}_VERSION_MAJOR}")set(CPACK_PACKAGE_VERSION_MINOR"${${PROJECT_NAME}_VERSION_MINOR}")set(CPACK_SOURCE_GENERATOR"TGZ")include(C...
If version details were given, the default value will be CMAKE_PROJECT_VERSION_MAJOR. If no version details were given, a default version of 0.1.1 will be assumed, leading to CPACK_PACKAGE_VERSION_MAJOR having a default value of 0. CPACK_PACKAGE_VERSION_MINOR Package minor version. The ...
-P <packageName> 覆盖/定义用于打包的CPACK_PACKAGE_NAME变量的值。 它将覆盖CPackConfig.cmake文件中为此变量设置的任何值。 -R <packageVersion> 覆盖/定义用于打包的CPACK_PACKAGE_VERSION变量的值。 它将覆盖CPackConfig.cmake文件中设置的值,或根据 CPACK_PACKAGE_VERSION_MAJOR, CPACK_PACKAGE_VERSION_MIN...
NOTE:当然cpack还提供了CPACK_PACKAGE_VERSION_MAJOR/CPACK_PACKAGE_VERSION_MINOR/CPACK_PACKAGE_VERSION, 这三个合起来的功能和CPACK_PACKAGE_VERSION的作用是一样的 设置软件包名称 set(CPACK_PACKAGE_NAME "omatrix") 设置软件包装位置 set(CPACK_SET_DESTDIR true) set(CPACK_INSTALL_PREFIX "/opt/omatrix...
set(CPACK_PACKAGE_VERSION_MAJOR "${Tutorial_VERSION_MAJOR}") set(CPACK_PACKAGE_VERSION_MINOR "${Tutorial_VERSION_MINOR}") set(CPACK_SOURCE_GENERATOR "TGZ") include(CPack) 1. 2. 3. 4. 5. 6. 这就是它的全部。我们首先包括 InstallRequiredSystemLibraries. 该模块将包括当前平...
set(CPACK_PACKAGE_VERSION "2.1") NOTE:当然cpack还提供了CPACK_PACKAGE_VERSION_MAJOR/CPACK_PACKAGE_VERSION_MINOR/CPACK_PACKAGE_VERSION, 这三个合起来的功能和CPACK_PACKAGE_VERSION的作用是一样的 设置软件包名称 set(CPACK_PACKAGE_NAME "omatrix") ...
#project(CpackDemo VERSION 0.0.1) set(CPACK_PACKAGE_NAME XXX) set(CPACK_PACKAGE_VERSION 0.0.1) #Default value is 0.1.1 set(CPACK_PACKAGE_VERSION_MAJOR 0)# Defalut value is CMAKE_PROJECT_VERSION_MAJOR set(CPACK_PACKAGE_VERSION_MINOR 0)# Defalut value is CMAKE_PROJECT_VERSION_MINOR set...
set(CPACK_PACKAGE_VENDOR "Wireshark developers") set(CPACK_PACKAGE_NAME "wireshark") set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README") set(CPACK_PACKAGE_VERSION_MAJOR "${PROJECT_MAJOR_VERSION}") set(CPACK_PACKAGE_VERSION_MINOR "${PROJECT_MINOR_VERSION}") ...