более современная генерация cmake

This commit is contained in:
2026-04-23 15:22:26 +03:00
parent d4f3383358
commit 81029e04ba
3 changed files with 14 additions and 29 deletions

View File

@@ -42,7 +42,6 @@ def create_all(libname, libpath, examples):
write_file(f"{libpath}/CMakeLists.txt", render_template("CMakeLists.txt", context))
write_file(f"{libpath}/include/{context['include_header']}", render_template("include/lib/lib.h", context))
write_file(f"{libpath}/src/{context['namespace']}.cpp", render_template("src/lib.cpp", context))
write_file(f"{libpath}/tests/CMakeLists.txt", render_template("tests/CMakeLists.txt", context))
write_file(f"{libpath}/tests/main.cpp", render_template("tests/main.cpp", context))
write_file(f"{libpath}/tests/test-{context['namespace']}.cpp", render_template("tests/test-lib.cpp", context))