mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-11-28 23:54:39 +00:00
This change also explicitly lists the source files for CMake. This is because `GLOB` does not remove old files when switching branches in Git, and `CONFIGURE_DEPENDS` will add unstaged files after stashing. See also: https://cmake.org/cmake/help/latest/command/file.html#glob |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| CMakeLists.txt | ||
| doctest.hpp | ||
| main.cpp | ||
| README.md | ||
| test_actions.cpp | ||
| test_compound_arguments.cpp | ||
| test_container_arguments.cpp | ||
| test_help.cpp | ||
| test_invalid_arguments.cpp | ||
| test_issue_37.cpp | ||
| test_negative_numbers.cpp | ||
| test_optional_arguments.cpp | ||
| test_parent_parsers.cpp | ||
| test_parse_args.cpp | ||
| test_positional_arguments.cpp | ||
| test_required_arguments.cpp | ||
| test_utility.hpp | ||
| test_value_semantics.cpp | ||
Argparse Tests
Linux
$ mkdir build
$ cd build
$ cmake ../.
$ make
$ ./tests
Windows
- Generate Visual Studio solution
$ mkdir build
$ cd build
$ cmake ../. -G "Visual Studio 15 2017"
- Open ARGPARSE.sln
- Build tests in RELEASE | x64
- Run tests.exe