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_TARGET

Use a custom target to control the copy command

EXTRA_ARGS

Extra arguments to pass to file(INSTALL) statement

DEPENDS

Targets that the copy command depends

SOURCES

Source files or directories, directories ending with “/” will have their contents copied

DESTINATION

Copy 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 target

  • QMSETUP_BUILD_DIR: custom target

INSTALL_DIR

Install the source files into a subdirectory in the given path. The subdirectory is the relative path from the QMSETUP_BUILD_DIR to DESTINATION.

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.