简体   繁体   English

如果代码不是ITK / VTK的一部分,如何添加头文件和代码?

[英]How to add header files and codes if the code is not part of ITK/VTK?

I am a beginner in ITK/VTK C++ programming, and I am using Clion IDE. 我是ITK / VTK C ++编程的初学者,并且正在使用Clion IDE。 For example, I want to add this code and some other codes to my code. 例如,我想将此代码其他一些代码添加到我的代码中。 I do not know how can I add and use thes codes when they are not part of ITK/VTK libraries. 我不知道当这些代码不是ITK / VTK库的一部分时如何添加和使用它们。

Could you please give me some hints and help on this? 您能给我一些提示和帮助吗? Thanks in advance 提前致谢

You need to setup your project so it uses ITK as a library. 您需要设置项目,以便它使用ITK作为库。 Maybe start at CLion CMake tutorial and ITK hello world example. 也许从CLion CMake教程ITK hello世界示例开始。

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

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