xmake project

This commit is contained in:
luo980 2025-02-18 02:55:32 +08:00
parent 5f088a81cc
commit 44807483dc
2 changed files with 13 additions and 0 deletions

6
src/main.cpp Normal file
View File

@ -0,0 +1,6 @@
#include <iostream>
int main() {
std::cout << "Hello, World!" << std::endl;
return 0;
}

7
xmake.lua Normal file
View File

@ -0,0 +1,7 @@
-- 定义项目名称
set_project("helloworld")
-- 定义目标
target("helloworld")
set_kind("binary") -- 目标类型为可执行文件
add_files("src/*.cpp") -- 添加源文件