From e0cd2f721c2ca95324d4c184e964a8c1603dbd45 Mon Sep 17 00:00:00 2001 From: Grace Yoder Date: Thu, 19 Mar 2026 20:44:23 +0000 Subject: [PATCH] init --- .gitignore | 13 +++++++++++++ CMakeLists.txt | 8 ++++++++ src/main.cpp | 6 ++++++ 3 files changed, 27 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..c9c50bf --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +CMakeLists.txt.user +CMakeCache.txt +CMakeFiles +CMakeScripts +Testing +Makefile +cmake_install.cmake +install_manifest.txt +compile_commands.json +CTestTestfile.cmake +_deps +CMakeUserPresets.json +build diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..a7d65d1 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,8 @@ +cmake_minimum_required(VERSION 3.10) + +project(HelloCppWorld CXX) + +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED True) + +add_executable(hello src/main.cpp) diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..0ab7f9b --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,6 @@ +#include + +int main() { + std::cout << "Hello, World!" << std::endl; + return 0; +}