This library is a C++ parser for .yml/.yaml files.
This project uses conan as its package manager.
You can read how to setup conan here.
- Clone the repository
git clone git@github.com:lypitech/yml-parser.git
cd yml-parser/- Build the project
# Configure and generate build files
cmake -B build/
# Compile the project
cmake --build build/If you want the build to be faster (to use all of your CPU cores), simply add --parallel to the options!
Library file will be located in the build/ folder.
If you want to build the project in another folder, simply replace build/ with the folder you want the library to be
built in.
Make sure the folder you specify is empty!
If you use CMake, using this library in your project is really simple.
Simply include the following lines to your CMakeLists.txt:
add_subdirectory(<library file path>)
target_include_directories(${PROJECT_NAME} PRIVATE
<library file path>/include
)
target_link_libraries(${PROJECT_NAME} PRIVATE
ymlparser
)If you don't use a proper build system, you can still manually link the library to your project when compiling it.
Simply include the following to your compilation flags:
-L <library file path> -l ymlparser
TODO
TODO
TODO
TODO