From d0937de2c8c8a1adf45d1a77c480a09122959dd9 Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Fri, 4 Apr 2025 10:31:23 +0800 Subject: [PATCH] update --- .gitignore | 2 ++ CMakeLists.txt | 5 +++++ src/main.cpp | 4 ++++ 3 files changed, 11 insertions(+) create mode 100644 .gitignore create mode 100644 CMakeLists.txt create mode 100644 src/main.cpp diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d835f77 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +build +.cache \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..658f750 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 3.10) + +file(GLOB_RECURSE SRC_CPP src/*.cpp) + +add_executable(main ${SRC_CPP}) \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..698336f --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,4 @@ +#include +int main(){ + std::cout<<"hello world!\n"; +} \ No newline at end of file