CMake:如何在Linux中将目标/文件打包到多个包中? [英] CMake: How to pack a target/file into multiple packages in Linux?

查看:732
本文介绍了CMake:如何在Linux中将目标/文件打包到多个包中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在一个项目生成相当多的可执行文件,库
和配置,他们需要被打包到不同的包进行部署。
问题是,包含那些目标/文件是不是相互的
独占。一个目标/文件可以属于多个包。

I'm working on a project which generates quite a few executables, libraries and configs, they need to be packed into different packages for deployment. The problem is, the inclusion of those targets/files is not mutual exclusive. One target/file can belong to multiple packages.

我使用CMake 2.8.9并尝试使用CPack。我知道这是一种可行的
安装类型。但我的平台是Ubuntu,所以在Archives / Debs是
可以接受,他们似乎不支持。

I'm using CMake 2.8.9 and trying CPack. I know it's kind of doable with install types. But my platform is Ubuntu, so on Archives/Debs are acceptable and they don't seem to support that.

有组件/组/父组似乎只能将一个
目标/文件打包到一个组件/组中。

With components/groups/parent groups it seems only possible to pack one target/file into one component/group.

有什么办法吗?

感谢

推荐答案

好的,我会自己回答这个问题,列表,我得到的答案:与cmake 2.8.9或更早(到目前为止),运行CPack多次与不同的组件设置。这是一个有点adhoc但工作。

Well, I'll answer it myself for convinience of late comers: from CMake mail list, I got the answer: with cmake 2.8.9 or earlier (so far), run CPack multiple times with different component settings. That's a bit adhoc but does the job.

这篇关于CMake:如何在Linux中将目标/文件打包到多个包中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆