简体   繁体   English

如何使用 ZEDC9F0A5A5D57743831 控制台中的 CMake 构建 Eclipse C++ 项目(没有可用的 GUI)

[英]How I can build Eclipse C++ project with CMake from the Linux console ( no GUI is available )

I have Eclipse C++ project and want to build this on Linux server ( no GUI ) with CMake.我有 Eclipse C++ 项目,想在 Linux 服务器(无 GUI)上使用 ZDF4714B93B9EBC109EBC1099 How can I generate CMakelists.txt from this Eclipse project?如何从此 Eclipse 项目生成 CMakelists.txt?

Unless you write a CMake generator from eclipse files, there is no tools that will produce a seamless transition between the two automatically, and I don't think there is a 1:1 relationship between the two.除非您从 eclipse 文件编写 CMake 生成器,否则没有工具可以自动在两者之间产生无缝过渡,我认为两者之间不存在 1:1 的关系。

The best would be to learn CMake and write the file that match your current project.最好的办法是学习 CMake 并编写与您当前项目匹配的文件。 After that, there are ways that eclipse can use this CMake file afterwards so you don't duplicate your project definition.之后,eclipse 可以在之后使用此 CMake 文件,这样您就不会重复您的项目定义。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM