From 7c7144b18339b7ede9e65987a2cb6ff4f22f7c64 Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Sun, 17 Oct 2021 02:32:52 +0200 Subject: [PATCH] Also generate CMakeLists.txt when calling cmkr init --- src/arguments.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/arguments.cpp b/src/arguments.cpp index df5b5b6..25507f3 100644 --- a/src/arguments.cpp +++ b/src/arguments.cpp @@ -36,6 +36,9 @@ const char *handle_args(int argc, char **argv) { auto ret = cmkr::gen::generate_project(type.c_str()); if (ret) return "Initialization failure!"; + ret = cmkr::gen::generate_cmake(fs::current_path().string().c_str()); + if (ret) + return "CMake generation error!"; return "Directory initialized!"; } else if (main_arg == "build") { auto ret = build::run(argc, argv);