Initial project structure

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2022-02-21 15:44:22 +01:00
commit e06858dcf5
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
5 changed files with 16 additions and 0 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
build/
cmake-build-debug/
.idea/

3
CMakeLists.txt Normal file
View file

@ -0,0 +1,3 @@
cmake_minimum_required(VERSION 3.22)
project(CPP)
add_subdirectory(hello_world)

View file

@ -0,0 +1,3 @@
project(helloworld)
set(SOURCES main.cpp)
add_executable(${PROJECT_NAME} ${SOURCES})

BIN
hello_world/main Executable file

Binary file not shown.

7
hello_world/main.cpp Normal file
View file

@ -0,0 +1,7 @@
#include <iostream>
int main(int argc, char* argv[])
{
std::cout << "Hello, World!" << std::endl;
return 0;
}