使用CMake和Eclipse CDT,快速切换目标?

发布于 2024-09-05 23:43:32 字数 494 浏览 1 评论 0原文

我正在使用 CDT4 - MinGW Makefiles 生成器。 Project->Build All 成功构建了目标(共享库),但似乎我必须(A)打开项目设置页面并输入目标,希望它拼写正确*,或者(B)从终端“构建”安装和打包目标。

我注意到一个很有前途的“项目”->“创建目标”条目,但“创建...”和“构建...”子条目是灰色的。

任何提示将不胜感激!

*http ://publib.boulder.ibm.com/infocenter/rsdhelp/v7r0m0/topic/org.eclipse.cdt.doc.user/concepts/cdt_c_build_over.htm

I'm using the CDT4 - MinGW Makefiles generator. Project->Build All successfully builds the target (a shared library) but it seems I would have to (A) open a project settings page and type in the target, hoping it's spelled right*, or (B) run make from a terminal to "build" the install and package targets.

I noticed a promising Project->Make Target entry, but the Create... and Build... sub-entries are greyed-out.

Any hints would be appreciated!

*http://publib.boulder.ibm.com/infocenter/rsdhelp/v7r0m0/topic/org.eclipse.cdt.doc.user/concepts/cdt_c_build_over.htm

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

九局 2024-09-12 23:43:32

对于其他想知道的人,Project->Make Target->Build... 会向您提供可用目标的列表。仅当项目资源管理器具有焦点时,它才可用(使用 Galileo)

然后,它只会显示所选目录的目标(因此请确保选择了您的项目,除非您只想构建“src”)。或者,只需在项目资源管理器中右键单击该项目。有点

麻烦与 Code::Blocks 处理 Makefile 的方式不同,但它毕竟是 Eclipse。

For anyone else wondering, Project->Make Target->Build... presents you with the list of targets available. It will only be available (Using Galileo) if the Project Explorer has focus.

Then, it will only show targets for whatever directory is selected (so make sure your project is selected, unless you only want to build 'src' for example. Alternatively, just right-click the project in the Project Explorer.

A bit more cumbersome than the way Code::Blocks handles Makefiles, but it is Eclipse, after all.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文