This commit is contained in:
ZtRXR 2024-06-15 23:23:07 +08:00
parent 311d74fdf4
commit c5d5b355c5

View File

@ -67,7 +67,7 @@ class cmake:
self.__write_stack__.append(f"pybind11_add_module({project_name} {args_to_str(source)})")
return self
def find_package(self,package_name:str,quiet:Literal["REQUIRED","QUIET"]="REQUIRED"):
def find_package(self,package_name:str,quiet:Literal["REQUIRED","QUIET"]="REQUIRED")->Self:
"""
find_package(<package> [version] [EXACT] [QUIET] [MODULE]
[REQUIRED] [[COMPONENTS] [components...]]
@ -76,4 +76,5 @@ class cmake:
"""
self.__write_stack__.append(f"find_package({package_name} {quiet})")
return self