This commit is contained in:
Andrew Haynes
2026-02-25 13:11:11 -05:00
commit c7597571d7
5 changed files with 75 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
---
BasedOnStyle: Google
Standard: Latest
# ColumnLimit: 80
UseTab: Always
TabWidth: 8
IndentWidth: 8
BreakBeforeBraces: Allman
SpaceBeforeCpp11BracedList: true
SeparateDefinitionBlocks: Always
Cpp11BracedListStyle: false
BreakAfterReturnType: TopLevel
AlignTrailingComments:
Kind: Always
ReflowComments: Always
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
AllowShortLoopsOnASingleLine: true
IndentAccessModifiers: false # Indent access specifiers by one level
AccessModifierOffset: -4 # Optional: adjust offset relative to the class indentation level
+2
View File
@@ -0,0 +1,2 @@
build/
.cache/
+47
View File
@@ -0,0 +1,47 @@
cmake_minimum_required(VERSION 4.2.1)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
project(engine)
include_directories(include)
set(SOURCES
src/main.cpp
src/graphics.cpp
src/renderer.cpp
src/data.cpp
src/scheduler.cpp
)
include(FetchContent)
FetchContent_Declare(SFML
GIT_REPOSITORY https://github.com/SFML/SFML.git
GIT_TAG 3.0.2
GIT_SHALLOW ON
EXCLUDE_FROM_ALL
SYSTEM)
FetchContent_MakeAvailable(SFML)
if(APPLE)
message(STATUS "Detected macOS: installing range-v3")
include(FetchContent)
FetchContent_Declare(
range-v3
GIT_REPOSITORY https://github.com/ericniebler/range-v3.git
GIT_TAG 0.12.0
GIT_SHALLOW ON
)
FetchContent_MakeAvailable(range-v3)
include_directories(${range-v3_SOURCE_DIR}/include)
endif()
add_executable(engine ${SOURCES})
target_link_libraries(engine
PRIVATE
SFML::Graphics
SFML::Window
SFML::System
)
BIN
View File
Binary file not shown.
+6
View File
@@ -0,0 +1,6 @@
#include <iostream>
int main() {
std::cout << "Hello World\n";
return 0;
}