Показать сообщение отдельно

  #2  
Старый 25.10.2024, 21:36
вайега52
Флудер
Регистрация: 19.06.2022
Сообщений: 2,997
С нами: 2055431

Репутация: 3


По умолчанию

Цитата:
Сообщение от vmprotect  

Данный проект является базовым для тех, кто хочет сделать плагин под самповский сервер.

Источники:
samp-pugin-sdk
sampgdk

Проект:

GitHub - ailishev/SampPluginTemplate: simple project plugin for samp server

simple project plugin for samp server. Contribute to ailishev/SampPluginTemplate development by creating an account on GitHub.

github.com


Как собирать и билдить:

Билд:





Код:
cmake -B build -A Win32


Сборка:





Код:
cmake --build build

можно же через фетч подтягивать самп птл:

Makefile:





Код:
include
(
FetchContent
)
FetchContent_Declare
(
samp-ptl
GIT_REPOSITORY https
:
//github.com/katursis/samp-ptl.git
    GIT_TAG 06b5e2b9c51879532368dd9e468b5e259ce5d7ce
)
FetchContent_MakeAvailable
(
samp-ptl
)
# samp-ptl
add_library
(
samp-ptl INTERFACE
)
target_include_directories
(
samp-ptl INTERFACE
$
{
samp-ptl_SOURCE_DIR
}
)
# project
target_link_libraries
(
$
{
PROJECT_NAME
}
PRIVATE
    samp-ptl
)
target_compile_definitions
(
$
{
PROJECT_NAME
}
PRIVATE
    HAVE_STDINT_H
)


позже закину свой мегапрожект
 
Ответить с цитированием