r5sdk/r5dev/pluginsdk/CMakeLists.txt
Kawe Mazidjatari ff98df556c Fix unresolved external symbols
These projects used 'V_FixSlashes' but weren't licked to Tier1.
2024-04-05 17:56:50 +02:00

44 lines
1.1 KiB
CMake

cmake_minimum_required( VERSION 3.16 )
add_module( "shared_lib" "PluginSDK" "vpc" ${FOLDER_CONTEXT} TRUE TRUE )
start_sources()
add_sources( SOURCE_GROUP "Core"
"dllmain.cpp"
"ifactory.h"
"pluginsdk.cpp"
"pluginsdk.h"
)
end_sources( "${BUILD_OUTPUT_DIR}/bin/x64_retail/plugins/" )
target_link_libraries( ${PROJECT_NAME} PRIVATE
"memoverride"
"tier0"
"tier1"
"libdetours"
"libprotobuf"
"liblzham"
"libspdlog"
"SigCache_Pb"
"SV_RCon_Pb"
"CL_RCon_Pb"
"Rpcrt4.lib"
)
target_link_options( ${PROJECT_NAME} PRIVATE
"/STACK:8000000" # Match game executable stack reserve size
# The only reason this has to be done, is because
# the _xxxx_dbg malloc functions could otherwise
# throw a linker error, as they are already defined
# in the CRT library, but there doesn't seem to be
# a standard way to override these, unlike the
# _xxxx_base malloc functions. Since this is only
# relevant for debug builds, this linker flag should
# only be toggled for DEBUG!!!
$<$<CONFIG:Debug>:/FORCE:MULTIPLE>
)