Logo
Explore Help
Sign In
tqcq/CPM.cmake
0
0
Fork 0
You've already forked CPM.cmake
mirror of https://github.com/cpm-cmake/CPM.cmake.git synced 2025-11-19 16:57:56 -05:00
Code Issues Packages Projects Releases Wiki Activity
Files
f552da96bd9e0bd4c46539e63b0f2f674eebcb24
CPM.cmake/examples/yaml/main.cpp

16 lines
317 B
C++
Raw Normal View History

add yaml example
2019-05-17 17:32:52 +02:00
#include <yaml-cpp/yaml.h>
Apply clang-format and cmake-format and add style check workflow (#171) * apply clang-format and cmake-format and add style check workflow * add declare package definition * add additional public methods and rename internals * change development verison tag to 1.0.0 * rename internal method * rename public method * rename test var * update copyright and fix comment * typo * run fix-format * fix test function names
2021-01-06 14:40:33 +01:00
add yaml example
2019-05-17 17:32:52 +02:00
#include <iostream>
Apply clang-format and cmake-format and add style check workflow (#171) * apply clang-format and cmake-format and add style check workflow * add declare package definition * add additional public methods and rename internals * change development verison tag to 1.0.0 * rename internal method * rename public method * rename test var * update copyright and fix comment * typo * run fix-format * fix test function names
2021-01-06 14:40:33 +01:00
int main(int argc, char** argv) {
add yaml example
2019-05-17 17:32:52 +02:00
if (argc != 2) {
std::cout << "usage: " << argv[0] << " <path to yaml file>" << std::endl;
return 1;
}
YAML::Node config = YAML::LoadFile(argv[1]);
std::cout << "Parsed YAML:\n" << config << std::endl;
return 0;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.1 Page: 2055ms Template: 149ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API