Filesystem¶
Copying, configuring and laying out files, at build time and at install time.
- qm_init_directories¶
Initialize the build output directories of targets and resources.
qm_init_directories()
- qm_add_copy_command¶
Add a resources copying command for whole project.
qm_add_copy_command(<target> [CUSTOM_TARGET <target>] [EXTRA_ARGS <args...>] [DEPENDS <targets...>] [VERBOSE] [SKIP_BUILD] [SKIP_INSTALL] SOURCES <file/dir...> [DESTINATION <dir>] [INSTALL_DIR <dir>] )
CUSTOM_TARGETUse a custom target to control the copy command
EXTRA_ARGSExtra arguments to pass to file(INSTALL) statement
DEPENDSTargets that the copy command depends
SOURCESSource files or directories, directories ending with “/” will have their contents copied
DESTINATIONCopy the source file to the destination path. If the given value is a relative path, the base directory depends on the type of the target
$<TARGET_FILE_DIR>: real targetQMSETUP_BUILD_DIR: custom target
INSTALL_DIRInstall the source files into a subdirectory in the given path. The subdirectory is the relative path from the
QMSETUP_BUILD_DIRtoDESTINATION.
- qm_future_configure_file¶
Add a custom command to run
configure_file.qm_future_configure_file(<_input> <output> [FORCE] [EXTRA_ARGS <args...>] [DEPENDS <deps...>] [VARIABLES <var...>] )
Where this page comes from
The comments in cmake/modules/Filesystem.cmake, which is what to change.