2 #! \brief Stores all known plug-in dependencies (potentially also from external projects)
3 #! in the variable specified by the first argument.
5 #! \param var_deps (required) A variable name containing the output.
6 #! \param PLUGINS (required) A list of plug-ins (target names or symbolic names) for which the
7 #! set of dependencies should be obtained.
8 #! \param ALL (option) Include external dependencies.
9 #! \ingroup CMakeUtilities
10 function(ctkFunctionGetPluginDependencies var_deps)
12 ctkMacroParseArguments(MY "PLUGINS" "ALL" ${ARGN})
16 message(FATAL_ERROR "Missing variable name as the first argument for storing the result")
20 message(FATAL_ERROR "Missing plug-in names")
24 ctkFunctionGetTargetDependencies(_targets TARGETS ${MY_PLUGINS} ALL)
26 ctkFunctionGetTargetDependencies(_targets TARGETS ${MY_PLUGINS})
30 foreach(_target ${_targets})
32 list(APPEND _plugins ${_target})
36 set(${var_deps} ${_plugins} PARENT_SCOPE)