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
: amain.cpp
file with the yaml related code commented out.add-subdirectory
:yaml-cpp
included throughadd_subdirectory()
.
- Download this repository.
- Go in the
src
directory and create abuild
directory. - In the
build
directory, runcmake .. && make
. - Run
./playground/playground
.
(The executable should run and do nothing.)