CLion and generated C++ files

已回答

I generate some h/cpp files on build phase thru CMake and my sources have dependencies on that files. How can I inform CLion that it should read and index that files?

0

@Aleksandr Stavonin I assume you need to include them (or the location in which they are generated) into the project. Please note that if you  generate files at build time, CLion will be able to index them only after the first build, since before the build they won't exist yet. You might consider using execute_process to generate the files at generation time.

0

请先登录再写评论。