From 08d48316b6e689efecdc3a201c75b9009b6f61aa Mon Sep 17 00:00:00 2001 From: ZtRXR Date: Sat, 20 Apr 2024 22:49:36 +0800 Subject: [PATCH] update --- pymake/cmake.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pymake/cmake.py b/pymake/cmake.py index 30569ea..b659eb8 100644 --- a/pymake/cmake.py +++ b/pymake/cmake.py @@ -55,4 +55,8 @@ class cmake: def file(self,new_var_name:"str",mode:"str"=glob_recurse,*search_str:"str")->"cmake": self.__write_stack.append(f"file({mode} {new_var_name} {args_to_str(search_str)})") + return self + + def add_subdirectory(self,path:str)->'cmake': + self.__write_stack.append(f"add_subdirectory({path}))") return self \ No newline at end of file