diff options
Diffstat (limited to 'tests/projects/other/native_module/modules/binary')
3 files changed, 24 insertions, 0 deletions
diff --git a/tests/projects/other/native_module/modules/binary/.gitignore b/tests/projects/other/native_module/modules/binary/.gitignore new file mode 100644 index 000000000..152105761 --- /dev/null +++ b/tests/projects/other/native_module/modules/binary/.gitignore @@ -0,0 +1,8 @@ +# Xmake cache +.xmake/ +build/ + +# MacOS Cache +.DS_Store + + diff --git a/tests/projects/other/native_module/modules/binary/src/main.cpp b/tests/projects/other/native_module/modules/binary/src/main.cpp new file mode 100644 index 000000000..7c435d251 --- /dev/null +++ b/tests/projects/other/native_module/modules/binary/src/main.cpp @@ -0,0 +1,9 @@ +#include <iostream> + +using namespace std; + +int main(int argc, char** argv) +{ + cout << "hello world!" << endl; + return 0; +} diff --git a/tests/projects/other/native_module/modules/binary/xmake.lua b/tests/projects/other/native_module/modules/binary/xmake.lua new file mode 100644 index 000000000..7b3ea4032 --- /dev/null +++ b/tests/projects/other/native_module/modules/binary/xmake.lua @@ -0,0 +1,7 @@ +add_rules("mode.debug", "mode.release") + +target("bar") + set_kind("binary") + add_files("src/*.cpp") + + |
