pound-emu_pound/gui/CMakeLists.txt
Carlo Pezzotti 2bb666a088 feat(gui): Extract and modularize GUI system from main.cpp
- Create modular GUI architecture with base Panel class
- Implement GUIManager to handle window lifecycle and panel management
- Add Window wrapper class for SDL3/OpenGL context management
- Create specialized panels:
  - ConsolePanel: Colored log output with timestamps
  - CPUPanel: CPU debugging with tabs for registers, memory, and disassembly
  - PerformancePanel: Real-time FPS and frame time monitoring
- Apply modern dark theme with purple accents
- Add comprehensive menu bar (File, Emulation, View, Tools, Help)
- Update CMakeLists.txt to include new gui/ directory structure
- Refactor main.cpp to use the new GUI system
- Cutom theme on switch colors
2025-07-09 09:07:32 +02:00

39 lines
No EOL
979 B
CMake

# Copyright 2025 Pound Emulator Project. All rights reserved.
# GUI sources
set(GUI_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/Window.cpp
${CMAKE_CURRENT_SOURCE_DIR}/GUIManager.cpp
)
set(GUI_HEADERS
${CMAKE_CURRENT_SOURCE_DIR}/Window.h
${CMAKE_CURRENT_SOURCE_DIR}/GUIManager.h
${CMAKE_CURRENT_SOURCE_DIR}/Panel.h
)
# Panel sources
set(PANEL_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/panels/ConsolePanel.cpp
${CMAKE_CURRENT_SOURCE_DIR}/panels/CPUPanel.cpp
${CMAKE_CURRENT_SOURCE_DIR}/panels/PerformancePanel.cpp
)
set(PANEL_HEADERS
${CMAKE_CURRENT_SOURCE_DIR}/panels/ConsolePanel.h
${CMAKE_CURRENT_SOURCE_DIR}/panels/CPUPanel.h
${CMAKE_CURRENT_SOURCE_DIR}/panels/PerformancePanel.h
)
# Add all GUI sources to the main target
target_sources(Pound PRIVATE
${GUI_SOURCES}
${GUI_HEADERS}
${PANEL_SOURCES}
${PANEL_HEADERS}
)
# Include directories for GUI
target_include_directories(Pound PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/..
)