commit e06858dcf558f02d64e61c5e0b461f5229ccc714 Author: Severin Kaderli Date: Mon Feb 21 15:44:22 2022 +0100 Initial project structure Signed-off-by: Severin Kaderli diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..22742fc --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +build/ +cmake-build-debug/ +.idea/ \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..0c81a07 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,3 @@ +cmake_minimum_required(VERSION 3.22) +project(CPP) +add_subdirectory(hello_world) \ No newline at end of file diff --git a/hello_world/CMakeLists.txt b/hello_world/CMakeLists.txt new file mode 100644 index 0000000..0a04bf1 --- /dev/null +++ b/hello_world/CMakeLists.txt @@ -0,0 +1,3 @@ +project(helloworld) +set(SOURCES main.cpp) +add_executable(${PROJECT_NAME} ${SOURCES}) \ No newline at end of file diff --git a/hello_world/main b/hello_world/main new file mode 100755 index 0000000..7e576e2 Binary files /dev/null and b/hello_world/main differ diff --git a/hello_world/main.cpp b/hello_world/main.cpp new file mode 100644 index 0000000..9cfd57e --- /dev/null +++ b/hello_world/main.cpp @@ -0,0 +1,7 @@ +#include + +int main(int argc, char* argv[]) +{ + std::cout << "Hello, World!" << std::endl; + return 0; +}