Skip to content

Commit

Permalink
Finalize docs and add graphics pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Khrysys committed Oct 23, 2023
1 parent 075dbc2 commit 3654584
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 22 deletions.
33 changes: 14 additions & 19 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,32 @@ cmake_minimum_required(VERSION 3.24)
# Check if the CMP0077 policy is set and if not, set it to NEW
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)

project(DragonEngine VERSION 0.1.0.0)
string(TIMESTAMP maj "%Y")
string(TIMESTAMP min "%m")
string(TIMESTAMP rev "%d")

project(DragonEngine VERSION ${maj}.${min}.${rev}.0)
set(Dragon_FOUND CACHE BOOL "" ON)

if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
set(FMT_MASTER_PROJECT ON)
message(STATUS "CMake version: ${CMAKE_VERSION}")
endif ()

set(CMAKE_CXX_STANDARD 23)
set(CMAKE_C_STANDARD 23)

message(STATUS "Build started for ${PROJECT_NAME} Version ${PROJECT_VERSION}")
if(${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_SOURCE_DIR})
message(STATUS "Build started for ${PROJECT_NAME} Version ${PROJECT_VERSION}")
endif()

option(Dragon_INSTALL "Toggle to optionally configure the install files for DragonEngine" ON)
option(Dragon_2D_RENDER "Toggle to optionally force only 2D graphics (No camera initialization, shaders take in 2d position, etc.)" ON)
option(Dragon_INSTALL "Toggle to optionally configure the install files for DragonEngine" OFF)
option(Dragon_PACKAGE_BUILD "Toggle to optionally configure the CPack generator files" OFF)
option(Dragon_BUILD_EXAMPLES "Toggle to optionally build all the examples (dginfo is always built)" ON)
option(Dragon_BUILD_TESTS "Toggle to optionally not build the tests for DragonEngine" OFF)
option(Dragon_BUILD_DOCS "Toggle to optionally build the documentation (has no effect without Doxygen)" OFF)
option(Dragon_BUILD_DEPENDENCY_DOCS "Toggle to optionally build the documentation for Dragon's source dependencies (VkBootstrap, VMA, etc.)" OFF)
option(Dragon_NO_VULKAN "Toggle to build DragonEngine without any Vulkan or VMA support" OFF)
if(NOT DEFINED Dragon_MAX_POINT_LIGHTS)
set(Dragon_MAX_POINT_LIGHTS 128)
endif()

if(NOT DEFINED Dragon_MAX_DIRECTIONAL_LIGHTS)
set(Dragon_MAX_DIRECTIONAL_LIGHTS 4)
endif()
message(STATUS "Dragon_INSTALL: ${Dragon_INSTALL}")
message(STATUS "Dragon_2D_RENDER: ${Dragon_2D_RENDER}")
message(STATUS "Dragon_PACKAGE_BUILD: ${Dragon_PACKAGE_BUILD}")
message(STATUS "Dragon_BUILD_EXAMPLES: ${Dragon_BUILD_EXAMPLES}")
message(STATUS "Dragon_BUILD_TESTS: ${Dragon_BUILD_TESTS}")
message(STATUS "Dragon_BUILD_DOCS: ${Dragon_BUILD_DOCS}")
message(STATUS "Dragon_MAX_POINT_LIGHTS: ${Dragon_MAX_POINT_LIGHTS}")
message(STATUS "Dragon_MAX_DIRECTIONAL_LIGHTS: ${Dragon_MAX_DIRECTIONAL_LIGHTS}")

message(CHECK_START "Finding Dragon Submodules")
unset(missingComponents)
Expand Down
2 changes: 1 addition & 1 deletion modules/audio
Submodule audio updated 1 files
+1 −1 external/openal-soft
2 changes: 1 addition & 1 deletion modules/core

0 comments on commit 3654584

Please sign in to comment.