This commit is contained in:
Frank Mayer 2024-10-18 16:39:06 +02:00
commit 7732c44b31
No known key found for this signature in database
GPG Key ID: 69CC687128401C30
3 changed files with 26 additions and 0 deletions

14
.gitignore vendored Normal file

@ -0,0 +1,14 @@
CMakeLists.txt.user
CMakeCache.txt
CMakeFiles
CMakeScripts
Testing
Makefile
cmake_install.cmake
install_manifest.txt
compile_commands.json
CTestTestfile.cmake
_deps
CMakeUserPresets.json
.DS_Store
my_project

6
CMakeLists.txt Normal file

@ -0,0 +1,6 @@
cmake_minimum_required(VERSION 3.29)
project(MyProject LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)
file(GLOB SOURCES "src/*.cpp")
add_executable(my_project ${SOURCES})

6
src/main.cpp Normal file

@ -0,0 +1,6 @@
#include<iostream>
int main() {
std::cout << "Hello, World!" << std::endl;
return 0;
}