- test/: bgfx/Godot render goldens and compare shots nothing reads any more; the Granny oracle result m2-numeric.json moves to oracle/ - formats/: only the .spt sniffer was still linked; it moves into platform/SpeedTreeLib, the rest and tools/map_probe go - bgm/ duplicated Client/BGM byte for byte; tools/root archived root scripts that root.epk already holds; extension/src/proto had no build reference - GEMINI.md duplicated AGENTS.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
33 lines
851 B
CMake
33 lines
851 B
CMake
cmake_minimum_required(VERSION 3.20)
|
|
project(metin2_native CXX C)
|
|
|
|
include(CTest)
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
set(CMAKE_C_STANDARD 17)
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
|
|
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
|
set(CMAKE_BUILD_TYPE Debug CACHE STRING "" FORCE)
|
|
endif()
|
|
|
|
option(MT_BUILD_TOOLS "Build libgr2 validation tools" OFF)
|
|
option(MT_BUILD_PORT "Build the 40250 port and its tests" ON)
|
|
option(MT_BUILD_NATIVE_RENDER "Build the SDL3 and Vulkan client" OFF)
|
|
|
|
add_subdirectory(libgr2)
|
|
add_subdirectory(extension/third_party)
|
|
add_subdirectory(extension/src/codepage)
|
|
if(MT_BUILD_PORT OR MT_BUILD_NATIVE_RENDER)
|
|
add_subdirectory(extension/src/port)
|
|
endif()
|
|
|
|
if(MT_BUILD_TOOLS)
|
|
add_subdirectory(tools)
|
|
endif()
|
|
|
|
if(MT_BUILD_NATIVE_RENDER)
|
|
add_subdirectory(native_render)
|
|
endif()
|