get_targets: Add new command
Add a get_targets
command for querying the CMake configuration.
This first version of get_targets
comes with two modes:
-
DIRECTORY
: get the list of targets added in a directory or its subdirectories, and store it in a variable. -
EXPORT
: get the list of targets added to an export set, and store it in a variable.