Build: project version to contain git hash if not building a tagged commit
[marnav.git] / examples / subproject / src / main.cpp
blob8c15cbbb474c41e1787e080b5df12d876d784a37
1 #include <iostream>
2 #include <string>
3 #include <vector>
4 #include <marnav/version.hpp>
5 #include <marnav/nmea/nmea.hpp>
7 int main(int, char **)
9 std::cout << "marnav-demo\n";
10 // clang-format off
11 std::cout << "project version: " << marnav::project_version << '\n';
12 std::cout << "marnav version:"
13 << ' ' << marnav::version_major
14 << '.' << marnav::version_minor
15 << '.' << marnav::version_patch
16 << '\n';
17 // clang-format on
19 std::cout << "supported sentences:\n";
20 for (const auto & entry : marnav::nmea::get_supported_sentences_str())
21 std::cout << "- " << entry << '\n';