cmakeminimumrequired(VERSION 3.18) You must set ASM, otherwise CMAKEASMCOMPILEOBJECT…
- User
cmake_minimum_required(VERSION 3.18)
You must set ASM, otherwise CMAKE_ASM_COMPILE_OBJECT will not work on MSVC
project(counterstrikesharp C CXX ASM)
include("makefiles/shared.cmake") INCLUDE(FindProtobuf)
add_subdirectory(libraries/spdlog) add_subdirectory(libraries/dyncall) add_subdirectory(libraries/funchook) add_subdirectory(libraries/DynoHook)
set_property(TARGET dynohook PROPERTY DYNO_ARCH_X86 64) set_property(TARGET funchook-static PROPERTY POSITION_INDEPENDENT_CODE ON)
SET(SOURCE_FILES src/mm_plugin.cpp src/mm_plugin.h libraries/hl2sdk-cs2/tier1/convar.cpp libraries/hl2sdk-cs2/tier1/generichash.cpp libraries/hl2sdk-cs2/tier1/keyvalues3.cpp libraries/hl2sdk-cs2/entity2/entityidentity.cpp libraries/hl2sdk-cs2/entity2/entitysystem.cpp libraries/hl2sdk-cs2/entity2/entitykeyvalues.cpp libraries/dotnet/hostfxr.h libraries/dotnet/coreclr_delegates.h libraries/metamod-source/core/sourcehook/sourcehook.cpp libraries/metamod-source/core/sourcehook/sourcehook_impl_chookidman.cpp libraries/metamod-source/core/sourcehook/sourcehook_impl_chookmaninfo.cpp libraries/metamod-source/core/sourcehook/sourcehook_impl_cvfnptr.cpp libraries/metamod-source/core/sourcehook/sourcehook_impl_cproto.cpp src/scripting/dotnet_host.h src/scripting/dotnet_host.cpp src/core/utils.h src/core/globals.h src/core/globals.cpp src/core/coreconfig.h src/core/coreconfig.cpp src/core/gameconfig.h src/core/gameconfig.cpp src/core/log.h src/core/log.cpp src/scripting/script_engine.h src/scripting/script_engine.cpp src/core/global_listener.h src/scripting/callback_manager.h src/scripting/callback_manager.cpp src/core/managers/event_manager.h src/core/managers/event_manager.cpp src/core/timer_system.h src/core/timer_system.cpp src/core/tick_scheduler.h src/core/tick_scheduler.cpp src/scripting/autonative.h src/scripting/natives/natives_engine.cpp src/core/engine_trace.h src/core/engine_trace.cpp src/scripting/natives/natives_callbacks.cpp src/core/managers/player_manager.h src/core/managers/player_manager.cpp src/scripting/natives/natives_vector.cpp src/scripting/natives/natives_timers.cpp src/utils/virtual.h src/core/memory.cpp src/core/memory.h src/core/managers/con_command_manager.cpp src/core/managers/con_command_manager.h src/scripting/natives/natives_commands.cpp src/core/memory_module.h src/core/memory_module.cpp src/core/cs2_sdk/interfaces/cgameresourceserviceserver.h src/core/cs2_sdk/interfaces/cschemasystem.h src/core/cs2_sdk/interfaces/cs2_interfaces.h src/core/cs2_sdk/interfaces/cs2_interfaces.cpp src/core/cs2_sdk/schema.h src/core/cs2_sdk/schema.cpp src/core/function.cpp src/core/function.h src/scripting/natives/natives_memory.cpp src/scripting/natives/natives_schema.cpp src/scripting/natives/natives_entities.cpp src/scripting/natives/natives_voice.cpp src/core/managers/entity_manager.cpp src/core/managers/entity_manager.h src/core/managers/chat_manager.cpp src/core/managers/chat_manager.h src/core/managers/server_manager.cpp src/core/managers/server_manager.h src/scripting/natives/natives_server.cpp libraries/nlohmann/json.hpp src/core/managers/voice_manager.cpp src/core/managers/voice_manager.h src/scripting/natives/natives_dynamichooks.cpp src/core/game_system.h src/core/game_system.cpp src/scripting/natives/natives_hudtext.cpp src/scripting/natives/natives_hudtext.h src/protobuf/generated/usermessages.pb.cc src/protobuf/generated/usermessages.pb.h src/protobuf/generated/cstrike15_usermessages.pb.cc src/protobuf/generated/cstrike15_usermessages.pb.h src/protobuf/generated/cstrike15_gcmessages.pb.cc src/protobuf/generated/cstrike15_gcmessages.pb.h src/protobuf/generated/steammessages.pb.cc src/protobuf/generated/steammessages.pb.h src/protobuf/generated/engine_gcmessages.pb.cc src/protobuf/generated/engine_gcmessages.pb.h src/protobuf/generated/gcsdk_gcmessages.pb.cc src/protobuf/generated/gcsdk_gcmessages.pb.h src/protobuf/generated/networkbasetypes.pb.cc src/protobuf/generated/networkbasetypes.pb.h src/protobuf/generated/network_connection.pb.cc src/protobuf/generated/network_connection.pb.h libraries/hl2sdk-cs2/thirdparty/protobuf-3.21.8/src/google/protobuf/message.cc libraries/hl2sdk-cs2/thirdparty/protobuf-3.21.8/src/google/protobuf/message.h libraries/hl2sdk-cs2/thirdparty/protobuf-3.21.8/src/google/protobuf/message_lite.cc libraries/hl2sdk-cs2/thirdparty/protobuf-3.21.8/src/google/protobuf/message_lite.h libraries/hl2sdk-cs2/thirdparty/protobuf-3.21.8/src/google/protobuf/generated_message_bases.cc libraries/hl2sdk-cs2/thirdparty/protobuf-3.21.8/src/google/protobuf/generated_message_bases.h libraries/hl2sdk-cs2/thirdparty/protobuf-3.21.8/src/google/protobuf/descriptor.pb.cc libraries/hl2sdk-cs2/thirdparty/protobuf-3.21.8/src/google/protobuf/descriptor.pb.h )
- Assistant