From 5097161b538ba9139515a18f2370a4a0f4110eda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=BB=E9=AD=82=E5=9C=A3=E4=BD=BF?= Date: Tue, 23 Jan 2024 14:21:54 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=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 | 2 ++ CMakeLists.txt | 8 ++++++++ main.cpp | 6 ++++++ 3 files changed, 16 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 main.cpp diff --git a/.gitignore b/.gitignore index e257658..f244b4d 100644 --- a/.gitignore +++ b/.gitignore @@ -31,4 +31,6 @@ *.exe *.out *.app +cmake* +.idea diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..41689fe --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,8 @@ +cmake_minimum_required(VERSION 3.27) +project(Timer) + +set(CMAKE_CXX_STANDARD 17) + +add_executable(Timer + main.cpp +) diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..bc8f460 --- /dev/null +++ b/main.cpp @@ -0,0 +1,6 @@ +#include + +int main() { + std::cout << "Hello, World!" << std::endl; + return 0; +}