Skip to content

pals-project/pals-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

C++ Interface for PALS lattice files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •