From 706ee2301ed2c99b7289476938d4811317244846 Mon Sep 17 00:00:00 2001 From: atdunbg Date: Fri, 18 Sep 2026 13:39:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=AC=A1=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 5 +++++ CMakeLists.txt | 8 ++++++++ src/main.cpp | 7 +++++++ 3 files changed, 20 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..06620ff --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.idea/ + +cmake-build-*/ +out/ +build/ diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..bc3df16 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,8 @@ +cmake_minimum_required(VERSION 4.3) +project(HelloVulkan) + +file(GLOB_RECURSE SOURCE_CODE src/**.cpp) + +set(CMAKE_CXX_STANDARD 20) + +add_executable(${PROJECT_NAME} ${SOURCE_CODE}) diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..4f9de56 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,7 @@ +#include + +int main() +{ + std::cout << "Hello, World!" << std::endl; + return 0; +}