如何更改包目标文件夹在CPack? [英] How to change package destination folder in CPack?
本文介绍了如何更改包目标文件夹在CPack?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个多模块 CMake 项目,其中有一个根目录 CMakeLists.txt 和多管理 add_subdirectory 宏。
I have a multiple module CMake project with a root CMakeLists.txt with multipe add_subdirectory macros.
据我所知,CPack / CMake的默认是在项目根文件夹中创建包,其中根 CMakeLists.txt 驻留。我想创建一个单独的安装模块,具有自己的文件夹并在那里创建软件包?如何做?
As far as I understand the default for CPack/CMake is to create package in project root folder, where root CMakeLists.txt resides. I would like to create a separate install module, with its own folder and create packages there? How to do this?
推荐答案
查看 CPACK_TOPLEVEL_TAG
文档 CPACK_PACKAGE_FILE_NAME 变量>。
Take a look at the CPACK_TOPLEVEL_TAG
and the CPACK_PACKAGE_FILE_NAME
variables in the documentation.
这篇关于如何更改包目标文件夹在CPack?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文