when nuttx's CMake build system calls an external module that already supports CMake, since `add_library` may have been called internally, it needs to provide a way to add its internally defined target to the final link. Signed-off-by: xuxin19 <xuxin19@xiaomi.com>