- Core interfaces for modular engine system - Resource management and registry system - Module system with sequential execution - ImGui-based UI implementation - Intra-process I/O communication - Data tree structures for hierarchical data - Serialization framework - Task scheduler interface - Debug engine implementation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
62 lines
1.4 KiB
CMake
62 lines
1.4 KiB
CMake
cmake_minimum_required(VERSION 3.20)
|
|
project(GroveEngine VERSION 1.0.0 LANGUAGES CXX)
|
|
|
|
# C++ Standard
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
# Dependencies
|
|
include(FetchContent)
|
|
|
|
# nlohmann_json for JSON handling
|
|
FetchContent_Declare(
|
|
nlohmann_json
|
|
GIT_REPOSITORY https://github.com/nlohmann/json.git
|
|
GIT_TAG v3.11.3
|
|
)
|
|
FetchContent_MakeAvailable(nlohmann_json)
|
|
|
|
# Core library (INTERFACE - header-only pour les interfaces)
|
|
add_library(grove_core INTERFACE)
|
|
|
|
target_include_directories(grove_core INTERFACE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
)
|
|
|
|
target_link_libraries(grove_core INTERFACE
|
|
nlohmann_json::nlohmann_json
|
|
)
|
|
|
|
# Alias for consistent naming
|
|
add_library(GroveEngine::core ALIAS grove_core)
|
|
|
|
# Optional: Build implementations
|
|
option(GROVE_BUILD_IMPLEMENTATIONS "Build GroveEngine implementations" ON)
|
|
|
|
if(GROVE_BUILD_IMPLEMENTATIONS)
|
|
add_library(grove_impl STATIC
|
|
src/ImGuiUI.cpp
|
|
src/ResourceRegistry.cpp
|
|
)
|
|
|
|
target_link_libraries(grove_impl PUBLIC
|
|
GroveEngine::core
|
|
)
|
|
|
|
add_library(GroveEngine::impl ALIAS grove_impl)
|
|
endif()
|
|
|
|
# Testing
|
|
option(GROVE_BUILD_TESTS "Build GroveEngine tests" OFF)
|
|
|
|
if(GROVE_BUILD_TESTS)
|
|
enable_testing()
|
|
add_subdirectory(tests)
|
|
endif()
|
|
|
|
# Installation
|
|
install(DIRECTORY include/grove
|
|
DESTINATION include
|
|
FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp"
|
|
)
|