Skip to content

Commit

Permalink
Also generate CMakeLists.txt when calling cmkr init
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexodia committed Oct 24, 2021
1 parent 0779798 commit 7c7144b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/arguments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7c7144b

Please sign in to comment.