yuanshen/Yuanshen.Patch/CMakeLists.txt
wisedev 61cc2055cf First working version of the server
KCP gameserver with packet dispatch, scene streaming, combat, gacha and the
shop, plus a small HTTP server for the login flow and the wish history page.

Game data under assets is pulled out of the client instead of being typed by
hand. The excel tables come from the packed bin container and the spawn points
from the compiled scene scripts.
2026-09-04 02:06:53 +03:00

18 lines
554 B
CMake

cmake_minimum_required(VERSION 3.20)
project(YuanshenPatch LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_library(version SHARED src/dllmain.cpp src/exports.h)
set_target_properties(version PROPERTIES
OUTPUT_NAME "version"
PREFIX ""
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/dist"
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/dist")
if(MSVC)
target_compile_options(version PRIVATE /utf-8 /O2 /MT /EHsc)
set_property(TARGET version PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded")
endif()