qt_finalize_target(A) Or if the project uses our qt provided wrappers for libraries and executables and a CMake version >= 3.19, it can just do qt_add_library(A) / qt_add_executable(A) The project can use the wrappers with a lower CMake version as well, but it'd still have to ...