summaryrefslogtreecommitdiff
path: root/test cases/cmake/8 custom command/subprojects/cmMod/main.cpp
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2020-04-12 15:11:54 +0200
committerDaniel Mensinger <daniel@mensinger-ka.de>2020-04-12 15:11:54 +0200
commit1be660ff64f2cb69cac0376ae57f65908b34238b (patch)
treea1b9d7a446b2706db34db3ed27ec65e553ff2e55 /test cases/cmake/8 custom command/subprojects/cmMod/main.cpp
parent4199cb32a513370b6dd68ea90cdd0e5b852dff23 (diff)
downloadmeson-1be660ff64f2cb69cac0376ae57f65908b34238b.tar.gz
cmake: Capture stdout with UNIX pipes
Diffstat (limited to 'test cases/cmake/8 custom command/subprojects/cmMod/main.cpp')
-rw-r--r--test cases/cmake/8 custom command/subprojects/cmMod/main.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/test cases/cmake/8 custom command/subprojects/cmMod/main.cpp b/test cases/cmake/8 custom command/subprojects/cmMod/main.cpp
deleted file mode 100644
index 9fade211d..000000000
--- a/test cases/cmake/8 custom command/subprojects/cmMod/main.cpp
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <iostream>
-#include <fstream>
-
-using namespace std;
-
-int main(int argc, const char *argv[]) {
- if(argc < 2) {
- cerr << argv[0] << " requires an output file!" << endl;
- return 1;
- }
- ofstream out1(string(argv[1]) + ".hpp");
- ofstream out2(string(argv[1]) + ".cpp");
- out1 << R"(
-#pragma once
-
-#include <string>
-
-std::string getStr();
-)";
-
- out2 << R"(
-#include ")" << argv[1] << R"(.hpp"
-
-std::string getStr() {
- return "Hello World";
-}
-)";
-
- return 0;
-}