2023-05-10 00:05:38 +02:00
|
|
|
cmake_minimum_required( VERSION 3.16 )
|
2023-06-17 00:45:27 +02:00
|
|
|
add_module( "shared_lib" "PluginSDK" "vpc" ${FOLDER_CONTEXT} TRUE TRUE )
|
2023-05-10 00:05:38 +02:00
|
|
|
|
|
|
|
start_sources()
|
|
|
|
|
|
|
|
add_sources( SOURCE_GROUP "Core"
|
|
|
|
"dllmain.cpp"
|
|
|
|
"ifactory.h"
|
|
|
|
"pluginsdk.cpp"
|
|
|
|
"pluginsdk.h"
|
|
|
|
)
|
|
|
|
|
2023-06-24 15:46:56 +02:00
|
|
|
end_sources( "${BUILD_OUTPUT_DIR}/bin/x64_retail/plugins/" )
|
2023-05-10 00:05:38 +02:00
|
|
|
|
|
|
|
target_link_libraries( ${PROJECT_NAME} PRIVATE
|
2023-06-28 20:00:38 +02:00
|
|
|
"memoverride"
|
2023-06-29 00:23:47 +02:00
|
|
|
"tier0"
|
2024-01-30 13:45:37 +01:00
|
|
|
"tier1"
|
2023-06-28 20:00:38 +02:00
|
|
|
|
2023-05-10 00:05:38 +02:00
|
|
|
"libdetours"
|
|
|
|
"libprotobuf"
|
|
|
|
"liblzham"
|
2023-05-13 20:04:11 +02:00
|
|
|
"libspdlog"
|
2023-06-28 20:00:38 +02:00
|
|
|
|
|
|
|
"SigCache_Pb"
|
|
|
|
"SV_RCon_Pb"
|
|
|
|
"CL_RCon_Pb"
|
2023-05-10 00:05:38 +02:00
|
|
|
"Rpcrt4.lib"
|
2023-05-13 19:38:32 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_options( ${PROJECT_NAME} PRIVATE
|
|
|
|
"/STACK:8000000" # Match game executable stack reserve size
|
2023-06-29 00:23:47 +02:00
|
|
|
|
|
|
|
# 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
|
2023-06-30 22:02:27 +02:00
|
|
|
# only be toggled for DEBUG!!!
|
|
|
|
$<$<CONFIG:Debug>:/FORCE:MULTIPLE>
|
2023-05-13 19:38:32 +02:00
|
|
|
)
|