1

Is there a way to display all the targets that are included in CMake's default target?

I tried browsing all the CMakeLists.txt of my project by hand, but it is very tedious as there are many of them.

Joris Valette
  • 59
  • 1
  • 3
  • 1
    You may iterate over **all targets**, using e.g. [that answer](https://stackoverflow.com/a/62311397/3440745), and include only those targets, which have property [EXCLUDE_FROM_ALL](https://cmake.org/cmake/help/latest/prop_tgt/EXCLUDE_FROM_ALL.html) being false-evaluated. – Tsyvarev Dec 21 '22 at 10:06

0 Answers0