blob: fcfe10345eeef8a7f5fdcfebc1bf87b059abc36e [file] [edit]
add_library(zz_parent INTERFACE)
# Before the subdirectory: only the parent target exists.
cmake_language(PRINT_TARGETS REGEX "^zz_")
add_subdirectory(PrintTargetsScope)
# After: the child's target is visible too.
cmake_language(PRINT_TARGETS REGEX "^zz_")