How to make the cmake identify the new add source files?

We want to add some new features into KiCAD, so two new source files are added to the source tree. However, after we run “cmake --CMAKE_BUILD_TYPE=Debug”, the new added source files are not included in the corresponding generated Makefile. So, how to make the cmake identify the new add source files?

They should be added in the CMakeLists.txt file, in the appropriate directory level those two new files are.

Thanks. Before I only found one CMakeLists.txt in the KiCAD’s root directory. Actually, there is a CMakeLists.txt in the sub directories, where we should add our new source files.

Thanks.

1 Like

Could you share what new features you added?

1 Like

Without knowing where the additional files live, i can only suggest to use the nearest CMakeLists.txt file.

I mean, if the current directory doesn’t have one then the higher directory will, check to see how current files are populated.

It is about " Cadence Allegro PCB Designer netlist output".

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.