I want to use add_custom_command to generate a file. I know I can use add_custom_target to set the DEPENDS to invoke the command. But this will also create a target(like in visual studio, it will create a .vcxproj). I use another add_custom_command, and then set the DEPENDS but it does not work. Why? Which level dependency can invoke it?
Are there any methods to invoke the add_custom_command like make install invokes the install command .