aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/examples/boost/foo.cpp
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-03-30 11:49:10 +0200
committerEgor Tensin <egor@tensin.name>2026-03-30 11:54:40 +0200
commit4cd3a9cdf65a8f0b96de21420b98b8e02181e4f4 (patch)
tree08b54a4313cdb41a883b244ffcbb423dbf7ced46 /test/examples/boost/foo.cpp
parentremove examples "dynamic" & "static" (diff)
downloadcmake-common-4cd3a9cdf65a8f0b96de21420b98b8e02181e4f4.tar.gz
cmake-common-4cd3a9cdf65a8f0b96de21420b98b8e02181e4f4.zip
move testing-only things into test/
Diffstat (limited to 'test/examples/boost/foo.cpp')
-rw-r--r--test/examples/boost/foo.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/examples/boost/foo.cpp b/test/examples/boost/foo.cpp
new file mode 100644
index 0000000..6219e68
--- /dev/null
+++ b/test/examples/boost/foo.cpp
@@ -0,0 +1,13 @@
+#include <boost/filesystem.hpp>
+
+#include <iostream>
+
+int main(int argc, char* argv[]) {
+ namespace fs = boost::filesystem;
+ std::cout << argv[0] << '\n';
+ for (int i = 1; i < argc; ++i) {
+ std::cout << fs::absolute(boost::filesystem::path{argv[i]}).string()
+ << '\n';
+ }
+ return 0;
+}