I am new to CMAKE and I have added a third party library, glfw. It compiles using ExternalProject_Add. This ExternalProject_Add apparently calls the CMake code for glfw and adds a new target to which I can link, but I only know this if I parse their code or if I run something like cmake --build . --target help
from the CLI. I want to be able to debug this from within CMAKE, i.e. to either
- Get a list of all known targets beforehand in a list. Do the same afterwards, then subtract and print out the extra or
- Query the external project for targets which it provides.
I am unable to find help on either of these, please help.