2 #! Stores all known plug-in targets (potentially also from external projects)
3 #! in the variable specified by the first argument.
5 #! \param var_targets A variable name containing the output.
6 #! \ingroup CMakeUtilities
7 function(ctkFunctionGetAllPluginTargets var_targets)
10 message(FATAL_ERROR "Missing variable name in argument list")
14 get_property(CTK_PLUGIN_LIBRARIES_VARS GLOBAL PROPERTY CTK_PLUGIN_LIBRARIES_VARS)
15 if(CTK_PLUGIN_LIBRARIES_VARS)
16 list(REMOVE_DUPLICATES CTK_PLUGIN_LIBRARIES_VARS)
17 foreach(_var ${CTK_PLUGIN_LIBRARIES_VARS})
19 list(APPEND plugin_targets ${${_var}})
24 set(${var_targets} ${plugin_targets} PARENT_SCOPE)