CMake List of all Project Targets

I have a top level project CMakeLists.txt file with multiple CMakeLists.txt below added with add_subdirectory that define targets.

Is there a way to list all of the targets from my top level project?

1 Like