file — CMake 3.23.0-rc3 Documentation
cmake.org › cmake › helpAn important difference is that configure_file () creates a dependency on the source file, so CMake will be re-run if it changes. The file (COPY_FILE) sub-command does not create such a dependency. See also the file (COPY) sub-command just below which provides further file-copying capabilities.
add_custom_command — CMake 3.23.0-rc2 Documentation
cmake.org › cmake › helpThis defines a command to generate specified OUTPUT file (s). A target created in the same directory ( CMakeLists.txt file) that specifies any output of the custom command as a source file is given a rule to generate the file using the command at build time. Do not list the output in more than one independent target that may build in parallel ...
[CMake] Clearing all cmake files
cmake.org › pipermail › cmakeSep 09, 2008 · Yes, I can remove files manually but the user is not supposed to know exactly which files cmake generates. Different versions might change generated files or add hidden files. On Sep 9, 2008, at 11:08 AM, Mike Jackson wrote: > I am going to assume then that you DID in fact use an out of source > build for your project.