| 123456789101112131415161718192021222324252627 | #!#! Stores all known plug-in targets (potentially also from external projects)#! in the variable specified by the first argument.#!#! \param var_targets A variable name containing the output.#! \ingroup CMakeUtilitiesfunction(ctkFunctionGetAllPluginTargets var_targets)  if(NOT var_targets)    message(FATAL_ERROR "Missing variable name in argument list")  endif()  set(plugin_targets )  get_property(CTK_PLUGIN_LIBRARIES_VARS GLOBAL PROPERTY CTK_PLUGIN_LIBRARIES_VARS)  if(CTK_PLUGIN_LIBRARIES_VARS)    list(REMOVE_DUPLICATES CTK_PLUGIN_LIBRARIES_VARS)    foreach(_var ${CTK_PLUGIN_LIBRARIES_VARS})      if(${_var})        list(APPEND plugin_targets ${${_var}})      endif()    endforeach()  endif()  set(${var_targets} ${plugin_targets} PARENT_SCOPE)endfunction()
 |