diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2019-11-28 13:15:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-28 13:15:51 +0200 |
| commit | 575a2c34f811dc003caf415d5343f524c5c8e802 (patch) | |
| tree | 02f9f31d088151d769a9cf6b566b74d3b14a31ce /test cases/cmake/8 custom command/subprojects/cmMod/args_test.cpp | |
| parent | bb03cf0dbc7158fd0684047272869abd565e4951 (diff) | |
| parent | 82df046bc17435e38907cb605e17a52609c00e36 (diff) | |
| download | meson-575a2c34f811dc003caf415d5343f524c5c8e802.tar.gz | |
Merge pull request #5989 from xclaesse/cmake-part2
cmake: Add support for add_custom_target() and add_dependencies()
Diffstat (limited to 'test cases/cmake/8 custom command/subprojects/cmMod/args_test.cpp')
| -rw-r--r-- | test cases/cmake/8 custom command/subprojects/cmMod/args_test.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test cases/cmake/8 custom command/subprojects/cmMod/args_test.cpp b/test cases/cmake/8 custom command/subprojects/cmMod/args_test.cpp new file mode 100644 index 000000000..abb8a4266 --- /dev/null +++ b/test cases/cmake/8 custom command/subprojects/cmMod/args_test.cpp @@ -0,0 +1,18 @@ +#include <iostream> +#include <fstream> + +using namespace std; + +int main(int argc, const char *argv[]) { + if(argc != 3 || string(argv[1]) != "arg1" || string(argv[2]) != "arg2") { + cerr << argv[0] << " requires 2 args" << endl; + return 1; + } + + ifstream in1("macro_name.txt"); + ofstream out1("cmModLib.hpp"); + out1 << "#define " << in1.rdbuf() << " = \"plop\""; + + + return 0; +} |
