Also generate CMakeLists.txt when calling cmkr init

toml-checker archive_7c7144b1
Duncan Ogilvie 3 years ago
parent 07797988b5
commit 7c7144b183

@ -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);

Loading…
Cancel
Save