Nu te inregistra daca esti idiot sau agramat!
AlphaCS.RO[ORIGINAL GAMING]
Thanks:
0
Likes:
0
-
[Plugin] samp-plugin-crashdetect/cmake/AddSAMPPlugin.cmake
Nume: SiNiSTER
Tip: samp-plugin-crashdetect/cmake/AMXConfig.cmake
Informatii:-
Descarcare:
Code:
function(add_samp_plugin name)
add_library(${name} MODULE ${ARGN})
set_target_properties(${name} PROPERTIES PREFIX "")
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set_property(TARGET ${name} APPEND_STRING PROPERTY COMPILE_FLAGS " -m32")
set_property(TARGET ${name} APPEND_STRING PROPERTY LINK_FLAGS " -m32")
endif()
if(CMAKE_COMPILER_IS_GNUCXX)
set_property(TARGET ${name} APPEND_STRING PROPERTY
COMPILE_FLAGS " -Wno-attributes")
endif()
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set_property(TARGET ${name} APPEND_STRING PROPERTY
COMPILE_FLAGS " -Wno-ignored-attributes")
endif()
if(WIN32 AND CMAKE_COMPILER_IS_GNUCC)
set_property(TARGET ${name} APPEND_STRING PROPERTY
LINK_FLAGS " -Wl,--enable-stdcall-fixup")
endif()
if(CYGWIN)
set_property(TARGET ${name} APPEND PROPERTY COMPILE_DEFINITIONS "WIN32")
set_property(TARGET ${name} APPEND_STRING PROPERTY LINK_FLAGS " -Wl,--kill-at")
elseif(UNIX AND NOT WIN32 AND NOT APPLE)
set_property(TARGET ${name} APPEND PROPERTY COMPILE_DEFINITIONS "LINUX")
endif()
if(MINGW)
# Work around missing #include <stddef.h> in <SDK>/amx/amx.h.
set_property(TARGET ${name} APPEND_STRING PROPERTY COMPILE_FLAGS " -include stddef.h")
endif()
endfunction()
Similar Threads
-
By SiNiSTER in forum Plugins
Replies: 0
Last Post: 20-07-17, 06:02
-
By SiNiSTER in forum Plugins
Replies: 0
Last Post: 20-07-17, 06:01
-
By SiNiSTER in forum Plugins
Replies: 0
Last Post: 18-09-16, 19:21
-
By SiNiSTER in forum Plugins
Replies: 0
Last Post: 30-07-16, 11:07
-
By SiNiSTER in forum Plugins
Replies: 0
Last Post: 09-06-16, 13:25
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules