Advertisement
Guest User

Untitled

a guest
Oct 27th, 2017
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. Hello folks.
  2.  
  3. 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".
  4.  
  5. I'm following this tutorial here: [url]https://github.com/Zeex/sampgdk/wiki/Setting-up-GDK-with-CMake[/url]
  6.  
  7. This is a image preview of my "root" folder!
  8. [IMG]https://imgur.com/9c44N71.png[/IMG]
  9.  
  10. And this is CMakeLists.txt file:
  11. [CODE]
  12. project(pluginsamp)
  13.  
  14. cmake_minimum_required(VERSION 2.8)
  15. list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
  16.  
  17. include(AMXConfig)
  18. include(AddSAMPPlugin)
  19.  
  20. include_directories(
  21. ${CMAKE_CURRENT_SOURCE_DIR}
  22. ${CMAKE_CURRENT_SOURCE_DIR}/amx
  23. )
  24.  
  25. add_definitions(-DSAMPGDK_AMALGAMATION)
  26.  
  27. add_samp_plugin(pluginsamp
  28. amxplugin.cpp
  29. pluginsamp.cpp
  30. pluginsamp.def
  31. sampgdk.c
  32. sampgdk.h
  33. )
  34. [/CODE]
  35.  
  36. I switched a few things in it, so they can match my files. Am I supposed to do it in first place?
  37.  
  38. Full Cmake error list: [url]https://pastebin.com/p8kpyqsL[/url]
  39. PS: I do not have any highlighted errors inside VS Studio.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement