From 9ca8cd1e2577bfa076afec476c7f27171971d4bf Mon Sep 17 00:00:00 2001 From: Daniel Henry Date: Sun, 31 Aug 2025 18:24:20 -0500 Subject: [PATCH] Initial Commit Signed-off-by: Daniel Henry --- .gitignore | 2 ++ CMakeLists.txt | 13 +++++++++++++ LightYears/CMakeLists.txt | 3 +++ LightYears/src/main.cpp | 5 +++++ 4 files changed, 23 insertions(+) create mode 100644 .gitignore create mode 100644 CMakeLists.txt create mode 100644 LightYears/CMakeLists.txt create mode 100644 LightYears/src/main.cpp diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9a44da1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.vs/ +build/ diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..58a7c86 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,13 @@ +cmake_minimum_required(VERSION 3.27.7) + +project(LightYears + VERSION 1.0.0 + LANGUAGES C CXX) + +set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_CXX_EXTENSIONS OFf) + +set(LIGHT_YEARS_GAME_TARGET_NAME LightYearsGame) + +add_subdirectory(LightYears) \ No newline at end of file diff --git a/LightYears/CMakeLists.txt b/LightYears/CMakeLists.txt new file mode 100644 index 0000000..ed79899 --- /dev/null +++ b/LightYears/CMakeLists.txt @@ -0,0 +1,3 @@ +add_executable(${LIGHT_YEARS_GAME_TARGET_NAME} + ${CMAKE_CURRENT_SOURCE_DIR}/src/main.cpp +) \ No newline at end of file diff --git a/LightYears/src/main.cpp b/LightYears/src/main.cpp new file mode 100644 index 0000000..3c229c7 --- /dev/null +++ b/LightYears/src/main.cpp @@ -0,0 +1,5 @@ +#include + +int main() { + std::cout << "Hello, world!" << std::endl; +} \ No newline at end of file