MacroAddFileDependencies¶
在 3.14 版之後被棄用: 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>...)
在 CMake 專案中使用以下命令載入該模組:
include(MacroAddFileDependencies)
命令¶
This module provides the following command:
- macro_add_file_dependencies¶
Adds dependencies to a source file:
macro_add_file_dependencies(<source> <files>...)
This command adds the given
<files>
to the dependencies of file<source>
.