-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
45 lines (37 loc) · 1.36 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
project(helloworld)
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
${CMAKE_CURRENT_SOURCE_DIR}/src/Headers
${CMAKE_CURRENT_SOURCE_DIR}/src/Sources
)
set(HEADERS
${CMAKE_CURRENT_SOURCE_DIR}/src/Headers/amx_var.h
${CMAKE_CURRENT_SOURCE_DIR}/src/Headers/AttackBot.h
${CMAKE_CURRENT_SOURCE_DIR}/src/Headers/DamageObject.h
${CMAKE_CURRENT_SOURCE_DIR}/src/Headers/plugin.h
${CMAKE_CURRENT_SOURCE_DIR}/src/Headers/plugincommon.h
${CMAKE_CURRENT_SOURCE_DIR}/src/Headers/sampgdk.h
${CMAKE_CURRENT_SOURCE_DIR}/src/Headers/streamer.hpp
${CMAKE_CURRENT_SOURCE_DIR}/src/Headers/tick.h
)
set(SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/src/Sources/amxplugin.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/Sources/AttackBot.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/Sources/callbacks.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/Sources/DamageObject.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/Sources/helloworld.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/Sources/helloworld.def
${CMAKE_CURRENT_SOURCE_DIR}/src/Sources/sampgdk.c
${CMAKE_CURRENT_SOURCE_DIR}/src/Sources/streamer.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/Sources/streamer.def
)
add_definitions(-DSAMPGDK_AMALGAMATION)
add_samp_plugin(helloworld
${HEADERS}
${SOURCES}
)