- Added `wxwidgets` module with a basic application (menu and UI setup in `main.cpp`) and CMake configuration. - Updated `Paddle` class in SFML to support dynamic key bindings and movement logic via `Update` method. - Introduced `asset_ids.h` for centralized asset file definitions in SFML. - Enhanced `sfml/main.cpp` with animation logic and drawable management using `std::vector`. - Adjusted CMake configurations for SFML and added asset copying to runtime directory.
14 lines
318 B
CMake
14 lines
318 B
CMake
cmake_minimum_required(VERSION 4.1)
|
|
project(wxwidgets LANGUAGES CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
find_package(wxWidgets REQUIRED COMPONENTS net core base)
|
|
if (wxWidgets_USE_FILE)
|
|
include(${wxWidgets_USE_FILE})
|
|
endif ()
|
|
|
|
add_executable(main
|
|
src/main.cpp)
|
|
target_link_libraries(main ${wxWidgets_LIBRARIES})
|