Configuration hook

rcf_addlocation(targetidprotocollocation)

You can register an additional possible location where the target could be located.

Parameters:
rcf_getlocation(targetidlocations)

Get all locations registered for the specified target.

Parameters:
  • targetid – For which target you want to get the locations.
  • locations – The variable name to which the locations should be copied.
rcf_obtain(nameprotocollocationoutdir)

This function allows you to obtain one or more files from different protocols and return the directory it’s located at.

Parameters:
  • name – The name which should be used in output if necessary.
  • protocol – Which protocol will be used ? E.g. “git”.
  • location – Specifies the location e.g. “https://github.com/Codefeed-Org/RadonCMakeFramework.git
  • outdir – The variable name to which the locations should be copied.
rcf_obtain_project(targetidoutdir[revision])

This macro allows you to obtain the specified target by checking all registed locations in order they were added and return the location of the first hit.

Parameters:
  • targetid – The target ID which should be obtained.
  • outdir – The variable name to which the location should be copied.
  • revision – If specified and the first location is a version control system the revision will be used to switch to the specific commit.