yaml_c_wrapper.cpp wraps YAML::Node into C objects so they can be part of a shared object library to interface with other languages
In pals-cpp, run
cmake -S . -B build
cmake --build buildThis builds libyaml_c_wrapper.dylib, a shared object library that can be used
by other languages.
It also builds an executable using yaml_reader.cpp containing examples for how to use the library to read lattice files, perform basic manipulations, and write to other lattice files. To see the output, navigate to the build directory and run
./yaml_readerIt will also build the tests.
In the root pals-cpp directory, run
ctest --test-dir build --output-on-failureTo run a specific test, run
ctest --test-dir build -R "Test Name"yaml-cpp's cmake only requires cmake version 3.4, which is deprecated. Warnings must
be suppressed to run properly