1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-16 07:07:13 +02:00

Add sample external plugin.

This commit is contained in:
Sandu Liviu Catalin
2020-05-08 23:16:48 +03:00
parent 3510a21311
commit a318070f8b
9 changed files with 742 additions and 14 deletions

View File

@ -73,7 +73,7 @@ add_library(SqModule MODULE
Misc/Weapon.cpp Misc/Weapon.hpp
)
# Link to base libraries
target_link_libraries(SqModule VCMP Squirrel Sqrat SqSDK)
target_link_libraries(SqModule VCMP Squirrel Sqrat SqSDKAPI)
# Link to third-party libraries
target_link_libraries(SqModule SimpleINI HashLib B64Lib AES256Lib WhirlpoolLib TinyDir PUGIXML SQLite MaxmindDB SimpleSocket)
# Link to mysql client library
@ -100,10 +100,6 @@ endif()
if(FORCE_32BIT_BIN)
set_target_properties(SqModule PROPERTIES COMPILE_FLAGS "-m32" LINK_FLAGS "-m32")
endif()
# Size of a pointer in bytes. To identify CPU architecture.
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
target_compile_definitions(SqModule PRIVATE _SQ64)
endif()
# Don't prefix the module binary.
set_target_properties(SqModule PROPERTIES PREFIX "")
# Custmize module binary name/

View File

@ -98,14 +98,6 @@
#error This operating system is not supported by the Squirrel Module
#endif
#ifndef SQMOD_ARCHITECTURE
#define SQMOD_ARCHITECTURE 0
#endif
#ifndef SQMOD_PLATFORM
#define SQMOD_PLATFORM 0
#endif
/* ------------------------------------------------------------------------------------------------
* SOFTWARE INFORMATION
*/