aoloe / cpp-yaml-cmake-playground

Experimenting with Cmake and yaml-cpp to create a .yaml file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yaml-cpp and Cmake Playground

Experimenting with Cmake and yaml-cpp to create a .yaml file.

The compiled executable produces the file test.yaml that contains:

Images:
  - test.jpg
  - alpha.jpg

We are looking for the best way(s) to include cpp-yaml in a project.

Each branch contains a possible "solution":

  • master: a main.cpp file with the yaml related code commented out.
  • add-subdirectory: yaml-cpp included through add_subdirectory().

Compile and run

  • Download this repository.
  • Go in the src directory and create a build directory.
  • In the build directory, run cmake .. && make.
  • Run ./playground/playground.
    (The executable should run and do nothing.)

About

Experimenting with Cmake and yaml-cpp to create a .yaml file.


Languages

Language:C++ 64.7%Language:CMake 35.3%