配置CMake C ++ / Java项目以与Eclipse一起使用 [英] Configuring a CMake C++/Java Project to work with Eclipse
问题描述
我目前正在尝试建立一个VTK项目,该项目已预先编写了Cmake makefile以与Eclipse一起使用。我需要使用的代码同时是C ++和Java,但是我现在主要关心的是实际上是否能够将现有项目转换为Eclipse可以理解的所有依赖项等。
I'm currently trying to set up a VTK project that has pre written Cmake makefiles to work with Eclipse. The code that I need to use is in both C++ and Java, but my main concern right now is actually to be able to translate the existing project into something that Eclipse can understand with all the dependencies etc.
请随时提问。
干杯。
推荐答案
首先,您需要 Eclipse CDT 软件包。
然后,您需要生成 Eclipse CDT
项目: cmake -G Eclipse CDT4-Unix Makefiles / path / to / source / dir
。
Then you need to generate the Eclipse CDT
project: cmake -G "Eclipse CDT4 - Unix Makefiles" /path/to/source/dir
.
您需要做的最后一步是在当前工作空间中导入项目:文件->导入...->现有项目进入工作区
。
The last step you need to do is import the project in the current workspace: File -> Import... -> Existing Projects Into Workspace
.
这篇关于配置CMake C ++ / Java项目以与Eclipse一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!