From 44807483dcd2fe2dc969bfca1b8358a9ee111b55 Mon Sep 17 00:00:00 2001 From: luo980 Date: Tue, 18 Feb 2025 02:55:32 +0800 Subject: [PATCH] xmake project --- src/main.cpp | 6 ++++++ xmake.lua | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 src/main.cpp create mode 100644 xmake.lua 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") -- 添加源文件