I feel almost stupid to ask about it, but I could not find anything in this ...
Suppose I have a cmake project that contains several targets: libraries, executables, external targets, .... How to list them using the cmake command line interface. I want a list of things that are valid for replacing $target on the following command line.
cmake . && cmake --build . --target $target
Lots of bonus points for a solution that uses neither grep, nor find, nor python, nor perl, nor ... - you get the idea.
cmake
Holger
source share