The recommended way to consume the library is build and link the static library. A dynamic version is planned.
The library will also be available in VCPKG (pull request).
If building is not an option, the library can be used as header-only by cloning the repository and using the appropriate include path.
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release
cd build
cmake --build .
sudo make install
find_package( Argumentum CONFIG REQUIRED )
set( Argumentum_LIBRARIES Argumentum::argumentum-s )
set( CMAKE_CXX_STANDARD 17 )
add_executable( example
main.cpp
)
target_link_libraries( example
${Argumentum_LIBRARIES}
)
#include <argumentum/argparse.h>
using namespace argumentum;
In vcpkg
directory:
./vcpkg install argumentum
cmake -H. -Bbuild -DCMAKE_TOOLCHAIN_FILE=path/to/vcpkg/scripts/buildsystems/vcpkg.cmake
git submodule add https://github.com/mmahnic/argumentum.git 3rdparty/argumentum
include_directories( 3rdparty/argumenutm/include )