Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Hello folks.
- I've been working on creating my own SA-MP plugin these days and now I'm facing an error with CMAKE tool. When I try to config it I get this error "Unknown CMake command "add_samp_plugin".
- I'm following this tutorial here: [url]https://github.com/Zeex/sampgdk/wiki/Setting-up-GDK-with-CMake[/url]
- This is a image preview of my "root" folder!
- [IMG]https://imgur.com/9c44N71.png[/IMG]
- And this is CMakeLists.txt file:
- [CODE]
- project(pluginsamp)
- cmake_minimum_required(VERSION 2.8)
- list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
- include(AMXConfig)
- include(AddSAMPPlugin)
- include_directories(
- ${CMAKE_CURRENT_SOURCE_DIR}
- ${CMAKE_CURRENT_SOURCE_DIR}/amx
- )
- add_definitions(-DSAMPGDK_AMALGAMATION)
- add_samp_plugin(pluginsamp
- amxplugin.cpp
- pluginsamp.cpp
- pluginsamp.def
- sampgdk.c
- sampgdk.h
- )
- [/CODE]
- I switched a few things in it, so they can match my files. Am I supposed to do it in first place?
- Full Cmake error list: [url]https://pastebin.com/p8kpyqsL[/url]
- PS: I do not have any highlighted errors inside VS Studio.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement