This commit is contained in:
2026-09-13 13:30:21 +08:00
commit a6bbd520cf
2744 changed files with 1598795 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
# CLI11 Meson test / example
Requirements: meson, ninja
## Build
```bash
meson build
ninja -C build
```
+18
View File
@@ -0,0 +1,18 @@
// Copyright (c) 2017-2026, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include <CLI/CLI.hpp>
#include <string>
int main(int argc, char **argv) {
CLI::App app{"App description"};
std::string filename = "default";
app.add_option("-f,--file", filename, "A help string");
CLI11_PARSE(app, argc, argv);
return 0;
}
+5
View File
@@ -0,0 +1,5 @@
project('mesonTest', ['cpp'], default_options: ['cpp_std=c++14'])
cli11_dep = dependency('CLI11')
mainExe = executable('main', ['main.cpp'], dependencies: [cli11_dep])