From 1975059b1b1e688a166da8537a97308ea7c88e2b Mon Sep 17 00:00:00 2001 From: admin Date: Wed, 26 Nov 2025 15:20:54 +0100 Subject: [PATCH] initial commit --- .gitignore | 1 + .vscode/c_cpp_properties.json | 16 ++++++++++++++++ CMakeLists.txt | 9 +++++++++ src/main.cpp | 8 ++++++++ 4 files changed, 34 insertions(+) create mode 100644 .gitignore create mode 100644 .vscode/c_cpp_properties.json create mode 100644 CMakeLists.txt create mode 100644 src/main.cpp diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d163863 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build/ \ No newline at end of file diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..7e00aef --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,16 @@ +{ + "configurations": [ + { + "name": "Linux", + "includePath": [ + "${workspaceFolder}/**" + ], + "defines": [], + "compilerPath": "/usr/bin/gcc", + "cStandard": "c17", + "cppStandard": "gnu++23", + "intelliSenseMode": "linux-gcc-x64" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..7c8690a --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,9 @@ +cmake_minimum_required(VERSION 3.16.0 FATAL_ERROR) +project(pl VERSION 0.0.1 LANGUAGES C CXX) + +set(CMAKE_CXX_STANDARD 23) +set(SOURCES + src/main.cpp +) + +add_executable(pl ${SOURCES}) diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..fcf145f --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,8 @@ +#include +#include + +int main(int argc, char** argv) +{ + std::println("Hello, World!"); + return 0; +}