- Clone this git repository into your project.
- Add the repository root to the include directories (using the
-I
flag in GCC orinclude_directories
in CMake). - Build
semver.c
with your project. I prefer building it as a library (add_library
in CMake) and linking it to required targets (target_link_libraries
in CMake). - To use the library after adding it to the project, just #include
<semver.h>
.
This library depends on GLib and libm (-lm
flag in GCC) libraries.