|
|
@@ -6,24 +6,38 @@ MacroAddFileDependencies
|
|
|
------------------------
|
|
|
|
|
|
.. deprecated:: 3.14
|
|
|
+ Do not use this module in new code.
|
|
|
|
|
|
-.. code-block:: cmake
|
|
|
+ Instead use the :command:`set_property` command to append to the
|
|
|
+ :prop_sf:`OBJECT_DEPENDS` source file property directly:
|
|
|
+
|
|
|
+ .. code-block:: cmake
|
|
|
|
|
|
- macro_add_file_dependencies(<source> <files>...)
|
|
|
+ set_property(SOURCE <source> APPEND PROPERTY OBJECT_DEPENDS <files>...)
|
|
|
|
|
|
-Do not use this command in new code. It is just a wrapper around:
|
|
|
+Load this module in a CMake project with:
|
|
|
|
|
|
.. code-block:: cmake
|
|
|
|
|
|
- set_property(SOURCE <source> APPEND PROPERTY OBJECT_DEPENDS <files>...)
|
|
|
+ include(MacroAddFileDependencies)
|
|
|
|
|
|
-Instead use the :command:`set_property` command to append to the
|
|
|
-:prop_sf:`OBJECT_DEPENDS` source file property directly.
|
|
|
+Commands
|
|
|
+^^^^^^^^
|
|
|
|
|
|
-#]=======================================================================]
|
|
|
+This module provides the following command:
|
|
|
|
|
|
-macro (MACRO_ADD_FILE_DEPENDENCIES _file)
|
|
|
+.. command:: macro_add_file_dependencies
|
|
|
|
|
|
- set_property(SOURCE "${_file}" APPEND PROPERTY OBJECT_DEPENDS "${ARGN}")
|
|
|
+ Adds dependencies to a source file:
|
|
|
+
|
|
|
+ .. code-block:: cmake
|
|
|
|
|
|
-endmacro ()
|
|
|
+ macro_add_file_dependencies(<source> <files>...)
|
|
|
+
|
|
|
+ This command adds the given ``<files>`` to the dependencies of file
|
|
|
+ ``<source>``.
|
|
|
+#]=======================================================================]
|
|
|
+
|
|
|
+macro(MACRO_ADD_FILE_DEPENDENCIES _file)
|
|
|
+ set_property(SOURCE "${_file}" APPEND PROPERTY OBJECT_DEPENDS "${ARGN}")
|
|
|
+endmacro()
|