Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 1.25 KB

File metadata and controls

50 lines (38 loc) · 1.25 KB

Introduction

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

Usage

In pals-cpp, run

cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -S . -B build cmake --build build

This 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_reader

It will also build the tests.

Testing

In the root pals-cpp directory, run
ctest --test-dir build --output-on-failure

To run a specific test, run ctest --test-dir build -R "Test Name"

Issue

yaml-cpp's cmake only requires cmake version 3.4, which is deprecated. Warnings must be suppressed to run properly