CMake ADD_CUSTOM_COMMAND with unknown output files

I have a tool for generating some cpp and header files, and I want to add it with help ADD_CUSTOM_COMMANDto automatically execute it during build and add files to the project. The problem is that the names of (most) output files are not known in advance. How do I add these files?

+10
source share

Source: https://habr.com/ru/post/1610266/


All Articles