使用CMake和Eclipse CDT,快速切换目标?
我正在使用 CDT4 - MinGW Makefiles 生成器。 Project->Build All 成功构建了目标(共享库),但似乎我必须(A)打开项目设置页面并输入目标,希望它拼写正确*,或者(B)从终端“构建”安装和打包目标。
我注意到一个很有前途的“项目”->“创建目标”条目,但“创建...”和“构建...”子条目是灰色的。
任何提示将不胜感激!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于其他想知道的人,
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.