warfactoryracine/modules/CMakeLists.txt
StillHammer 61ef2293ad Replace engine architecture with modular triple interface system
- Remove old 10-engine system (engines/ directory deleted)
- Implement C++ triple interface architecture:
  * IEngine: Execution coordination (Debug → Production)
  * IModuleSystem: Strategy pattern (Sequential → Threaded → Cluster)
  * IModule: Pure game logic interface (200-300 lines per module)
  * IIO: Communication transport (Intra → Local → Network)

- Add autonomous module structure:
  * modules/factory/: Production logic with autonomous build
  * modules/economy/: Market simulation with autonomous build
  * modules/logistic/: Supply chain with autonomous build
  * Each module: CLAUDE.md + CMakeLists.txt + shared/ + build/

- Benefits for Claude Code development:
  * Ultra-focused contexts (200 lines vs 50K+ lines)
  * Autonomous builds (cmake . from module directory)
  * Hot-swappable infrastructure without logic changes
  * Parallel development across multiple Claude instances

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-20 09:15:03 +08:00

37 lines
1012 B
CMake

cmake_minimum_required(VERSION 3.20)
project(WarfactoryModules LANGUAGES CXX)
# Modules coordinator - builds all modules
add_subdirectory(factory)
add_subdirectory(economy)
add_subdirectory(logistic)
# Meta targets for all modules
add_custom_target(warfactory-modules
DEPENDS
factory-module
economy-module
logistic-module
COMMENT "Building all Warfactory modules"
)
add_custom_target(test-all-modules
DEPENDS
test-factory
test-economy
test-logistic
COMMENT "Testing all Warfactory modules"
)
add_custom_target(clean-all-modules
DEPENDS
clean-factory
clean-economy
clean-logistic
COMMENT "Cleaning all Warfactory modules"
)
message(STATUS "📦 All Warfactory modules configured:")
message(STATUS " make warfactory-modules : Build all .so files")
message(STATUS " make test-all-modules : Test all modules")
message(STATUS " make clean-all-modules : Clean all builds")