Creating a directory in CMake - Stack Overflow
https://stackoverflow.com/questions/370211512.09.2010 · In the add_custom_command() command (which adds a custom build rule to the generated build system), and the add_custom_target() command (which adds a target with no output so it will always be built), you specify the commands to execute at build time. Create a directory by executing the command ${CMAKE_COMMAND} -E make_directory. For example ...
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.
make_directory — CMake 3.23.0-rc3 Documentation
cmake.org › latest › commandmake_directory — CMake 3.23.0-rc3 Documentation make_directory ¶ Deprecated since version 3.0: Use the file (MAKE_DIRECTORY) command instead. make_directory (directory) Creates the specified directory. Full paths should be given. Any parent directories that do not exist will also be created. Use with care.