Skip to content

miqelm/conan-yaml-cpp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

conan-yaml-cpp

Conan package for the yaml-cpp library (https://github.com/jbeder/yaml-cpp).

badge

This package depends on Boost/1.60.0@lasote/stable.

Build status Build Status

Example

The following example shows how to use this Conan package with CMake. See Conan's documentation for other generators if you are not using CMake.

Add the package to your project's conanfile.txt:

[requires]
yaml-cpp/0.5.3@moonforged/stable

[generators]
cmake

Your CMakeLists.txt:

project(YourProject)
cmake_minimum_required(VERSION 2.8.12)

include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()

add_executable(example example.cpp)
target_link_libraries(example ${CONAN_LIBS})

And then your example.cpp:

#include <yaml-cpp/yaml.h>

int main()
{
  YAML::Node node = YAML::Load("[1, 2, 3]");
  // ...
  return 0;
}

Then you can use it as:

$ mkdir build && cd build
$ conan install ..
$ cmake .. -G "Visual Studio 14 Win64"
$ cmake --build . --config Release
$ bin/example

About

Conan.io package for the yaml-cpp library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 75.3%
  • Shell 14.9%
  • CMake 5.1%
  • C++ 4.7%