This commit is contained in:
ZtRXR 2024-04-20 22:49:36 +08:00
parent 37b97de5e6
commit 08d48316b6

View File

@ -56,3 +56,7 @@ class cmake:
def file(self,new_var_name:"str",mode:"str"=glob_recurse,*search_str:"str")->"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)})") self.__write_stack.append(f"file({mode} {new_var_name} {args_to_str(search_str)})")
return self return self
def add_subdirectory(self,path:str)->'cmake':
self.__write_stack.append(f"add_subdirectory({path}))")
return self