File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,17 @@ project(PySAMP)
3
3
add_compile_options (-std=c++11 )
4
4
5
5
6
- cmake_minimum_required (VERSION 2.8 )
6
+ cmake_minimum_required (VERSION 3.12 )
7
7
list (APPEND CMAKE_MODULE_PATH ${SAMPGDK_DIR} /cmake )
8
8
9
9
#find_package (Python3 COMPONENTS Interpreter Development)
10
10
11
- find_package (PythonInterp 3.5.2 )
12
- find_package (PythonLibs 3.5.2 )
11
+ find_package (Python 3.8.2 )
12
+ find_package (PythonLibs 3.8.2 )
13
+
14
+ find_library (SAMPGDK_LIBRARY
15
+ NAMES sampgdk sampgdk4s
16
+ HINTS "${CMAKE_PREFIX_PATH} /lib/" )
13
17
14
18
include (AMXConfig )
15
19
include (AddSAMPPlugin )
@@ -28,6 +32,7 @@ include_directories(
28
32
message (STATUS "PYTHON_LIBRARY = ${PYTHON_LIBRARY} " )
29
33
message (STATUS "PYTHON_EXECUTABLE = ${PYTHON_EXECUTABLE} " )
30
34
message (STATUS "PYTHON_INCLUDE_DIR = ${PYTHON_INCLUDE_DIR} " )
35
+ message (STATUS "SAMPGDK_LIBRARY = ${SAMPGDK_LIBRARY} " )
31
36
32
37
add_definitions (-DSAMPGDK_AMALGAMATION )
33
38
@@ -52,7 +57,7 @@ add_samp_plugin(PySAMP
52
57
test /callbackstest.cpp
53
58
)
54
59
55
- target_link_libraries (PySAMP sampgdk )
60
+ target_link_libraries (PySAMP ${SAMPGDK_LIBRARY} )
56
61
57
62
find_package (Doxygen )
58
63
if (DOXYGEN_FOUND )
Original file line number Diff line number Diff line change 1
- #define VERSION " 1.1.0-100 "
1
+ #define VERSION " 1.1.0-200 "
2
2
3
3
#include < stdio.h>
4
4
#include < string.h>
You can’t perform that action at this time.
0 commit comments