From a7333861b41f0ee5ea43c9ce38e2bb2ea2bfcc06 Mon Sep 17 00:00:00 2001 From: Blitblank Date: Fri, 10 Apr 2026 12:42:10 -0500 Subject: [PATCH] hello world --- .gitignore | 2 ++ CMakeLists.txt | 15 +++++++++++++++ README.md | 26 ++++++++++++++++++++++---- config/.gitkeep | 0 lib/.gitkeep | 0 src/main.cpp | 8 ++++++++ 6 files changed, 47 insertions(+), 4 deletions(-) create mode 100644 config/.gitkeep create mode 100644 lib/.gitkeep diff --git a/.gitignore b/.gitignore index e69de29..c4f0d1e 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,2 @@ + +build/* diff --git a/CMakeLists.txt b/CMakeLists.txt index e69de29..d37c72b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -0,0 +1,15 @@ + +cmake_minimum_required(VERSION 3.2) + +project(ouros) + +set(CMAKE_CXX_STANDARD 20) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20 -O3") + +set(CMAKE_INSTALL_PREFIX ${PROJECT_SOURCE_DIR}) + +#add_subdirectory(src) + +add_executable(ouros + src/main.cpp +) diff --git a/README.md b/README.md index 6b64f3f..bade9ec 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,8 @@ Ouros is a rudimentary 3D rendering application built with C++ utilizing the Vul ## Roadmap Below is some steps to organize development plan and future goals, mostly following Sascha's guide. - - [ ] Repo setup - - [ ] Hello world application + - [x] Repo setup + - [x] Hello world application - [ ] Window creation (glfw or sdl) - [ ] Vulkan installation - [ ] Hello Vulkan: instance creation @@ -38,8 +38,26 @@ Below is beyond Sascha's guide, but available elsewhere on his github. These are - [ ] Particles ## Build instructions -TODO: git clone, build/install libraries script, cmake commands, etc. -TODO: identify dependencies and how to install them (vulkan libraries, sdl, glm, etc.) + +### Dependencies: + - CMake > 3.2 + - C++20 + - Vulkan compatible gpu drivers (tested with an RTX3070 and an R9700) + - Will add more as the project grows + +### Clone respository: +```bash +$ git clone https://git.vxbard.net/homeburger/ouros.git --recursive +``` +### Configure and build project: +```bash +$ cmake -S . -B build +$ cmake --build build -j +``` +### Execute application: +```bash +$ ./build/ouros +``` ## Additional Resources - https://howtovulkan.com/ diff --git a/config/.gitkeep b/config/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/lib/.gitkeep b/lib/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/main.cpp b/src/main.cpp index e69de29..9f34bc9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -0,0 +1,8 @@ + +#include + +int main(int arg, char *argv[]) { + + std::cout << "Hi mom" << std::endl; + +}