basic game files port
This commit is contained in:
1 parent
8436242032
commit
9f24650296
10 files changed
+836
-1
No files matched your search
@@ -0,0 +1,45 @@
|
||||
# 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.
|
||||
#
|
||||
# Also depends on cevoai (ai/): perso/cevo/Protocol.pas and the AI-facing
|
||||
# "AI Template/Protocol.pas" share the same core gameplay structs verbatim
|
||||
# (TCity/TUn/TModel/TPlayerContext/TWonderInfo/..., and the sXxx/im*/wo*/go*/
|
||||
# tr*/fa* constants) - they're the same wire format, just handed to two
|
||||
# different consumers upstream. ai/include/Cevo/Protocol.h already has a
|
||||
# complete, exact C++ port of that shared subset (needed there first for the
|
||||
# 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)
|
||||
|
||||
set(CEVO_GAME_HEADERS
|
||||
include/Cevo/CityProcessing.h
|
||||
include/Cevo/CmdList.h
|
||||
include/Cevo/Database.h
|
||||
include/Cevo/IPQ.h
|
||||
)
|
||||
|
||||
set(CEVO_GAME_SOURCES
|
||||
src/CityProcessing.cpp
|
||||
src/CmdList.cpp
|
||||
src/Database.cpp
|
||||
src/IPQ.cpp
|
||||
)
|
||||
|
||||
add_library(cevogame STATIC ${CEVO_GAME_SOURCES} ${CEVO_GAME_HEADERS})
|
||||
|
||||
target_include_directories(cevogame PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
)
|
||||
|
||||
target_link_libraries(cevogame PUBLIC Qt${QT_VERSION_MAJOR}::Core cevoai)
|
||||
|
||||
set_target_properties(cevogame PROPERTIES
|
||||
CXX_STANDARD 17
|
||||
CXX_STANDARD_REQUIRED ON
|
||||
POSITION_INDEPENDENT_CODE ON
|
||||
)
|
||||
Reference in new issue
Block a user