I feel almost silly for asking this but I couldn't find anything on this...
Suppose I have a cmake project containing a number of targets (libraries, executables, external targets, etc). How do I list them using the cmake command line interface?
I want a list of things that are valid to substitute for $target in the following command line:
cmake . && cmake --build . --target $target
Lot's of bonus points for a solution that uses neither grep nor find nor python nor perl nor... you get the idea.