legatt 3f965b2393 C++20 migration and Client
- Migrated to C++20 modules
- Worker and ThreadedWorker base classes for interthread systems
- Client class for server transport and converting game data models to render data (views)
- Update provinces render data from Client
- Renderer handles commands now
2026-02-10 04:12:04 +03:00

34 lines
662 B
CMake

include(${CMAKE_SOURCE_DIR}/cmake/library.cmake)
set(LIB magnum-renderer)
# Find dependencies
if (WIN32)
set(MAGNUM_CONTEXT WglContext)
elseif(UNIX)
set(MAGNUM_CONTEXT GlxContext)
else()
message(FATAL_ERROR "No supported context for system")
endif()
set(MAGNUM_WITH_GLFWAPPLICATION ON)
find_package(Magnum REQUIRED
GL
GlfwApplication
Shaders
)
# Link library
add_library_target(${LIB})
target_link_libraries(${LIB} PUBLIC engine-api)
target_link_libraries(${LIB} PUBLIC utils)
target_link_libraries(${LIB} PUBLIC p7)
target_link_libraries(${LIB} PRIVATE
Magnum::GL
Magnum::GlfwApplication
Magnum::Shaders
Magnum::Magnum)