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