AddFileDependencies — CMake 4.3.3 Documentation

# AddFileDependencies

Deprecated since version 3.20: Do not use this module in new code.

Instead use the `set_property()` command to append to the `OBJECT_DEPENDS` source file property directly:

    set_property(SOURCE <source> APPEND PROPERTY OBJECT_DEPENDS <files>...)

Load this module in a CMake project with:

    include(AddFileDependencies)

## Commands

This module provides the following command:

add_file_dependencies

  Adds dependencies to a source file:

      add_file_dependencies(<source> <files>...)

  This command adds the given `<files>` to the dependencies of file `<source>`.