ported map

This commit is contained in:
Geoffray Levasseur committed 2026-10-27 14:20:02 +01:00
1 parent ba8b69d771
commit a803d083ca
3 files changed
+350 -5

No files matched your search

+8 -5
View File
@@ -29,8 +29,9 @@
# CevoGame: C++ port of the C-evo game engine itself (perso/cevo/*.pas, the
# unit's top-level files - as opposed to common/ which is Packages/Common's
# generic, game-agnostic utility layer). Ported incrementally, file by file;
# depends on Qt::Core (QByteArray/QIODevice/QString), not Widgets - the
# simulation/model layer has no business depending on a UI toolkit.
# depends on Qt::Core (QByteArray/QIODevice/QString) and Qt::Xml (Map.pas's
# XML map export), not Widgets - the simulation/model layer has no business
# depending on a UI toolkit.
#
# Also depends on cevoai (ai/): perso/cevo/Protocol.pas and the AI-facing
# "AI Template/Protocol.pas" share the same core gameplay structs verbatim
@@ -41,14 +42,15 @@
# AI plugin ABI), so game/ reuses it directly via cevoai's include dir
# instead of maintaining a second, duplicate copy.
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core)
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core Xml)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Xml)
set(CEVO_GAME_HEADERS
include/Cevo/CityProcessing.h
include/Cevo/CmdList.h
include/Cevo/Database.h
include/Cevo/IPQ.h
include/Cevo/Map.h
include/Cevo/UnitProcessing.h
)
@@ -57,6 +59,7 @@ set(CEVO_GAME_SOURCES
src/CmdList.cpp
src/Database.cpp
src/IPQ.cpp
src/Map.cpp
src/UnitProcessing.cpp
)
@@ -66,7 +69,7 @@ target_include_directories(cevogame PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
)
target_link_libraries(cevogame PUBLIC Qt${QT_VERSION_MAJOR}::Core cevoai)
target_link_libraries(cevogame PUBLIC Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Xml cevoai)
set_target_properties(cevogame PROPERTIES
CXX_STANDARD 17