diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..bc8f460 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,6 @@ +#include + +int main() { + std::cout << "Hello, World!" << std::endl; + return 0; +} diff --git a/xmake.lua b/xmake.lua new file mode 100644 index 0000000..4385358 --- /dev/null +++ b/xmake.lua @@ -0,0 +1,7 @@ +-- 定义项目名称 +set_project("helloworld") + +-- 定义目标 +target("helloworld") + set_kind("binary") -- 目标类型为可执行文件 + add_files("src/*.cpp") -- 添加源文件