diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e85fb2..af65caa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/modules/audio b/modules/audio index ffca29f..d21c8d8 160000 --- a/modules/audio +++ b/modules/audio @@ -1 +1 @@ -Subproject commit ffca29f658b1bfd19947f3235d44d6a753b3d5fd +Subproject commit d21c8d889e6eb374685b2fce6687139d823984f4 diff --git a/modules/core b/modules/core index e51744b..6475661 160000 --- a/modules/core +++ b/modules/core @@ -1 +1 @@ -Subproject commit e51744b7e79bc746cc8bf7106afed14c79193408 +Subproject commit 647566142d439e6fee738ebf61b6b9915c96ccfd diff --git a/modules/graphics b/modules/graphics index 7d1a41d..fa83f05 160000 --- a/modules/graphics +++ b/modules/graphics @@ -1 +1 @@ -Subproject commit 7d1a41de57dbc207054c0bf5de2ff1edab20641e +Subproject commit fa83f053e329db9d20389ed07505c89c01e4b8de