-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
59 lines (52 loc) · 1.13 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
cmake_minimum_required(VERSION 3.16)
project(openBully
LANGUAGES C CXX)
if (NOT DEFINED BULLY_DIR)
message(WARNING "You have not defined BULLY_DIR.")
set(BULLY_DIR ${CMAKE_CURRENT_BINARY_DIR})
endif()
file(GLOB_RECURSE PROJECT_FILES "src/*.h" "src/*.cpp")
add_library(openBully SHARED ${PROJECT_FILES})
target_include_directories(openBully PRIVATE
src
src/animation
src/area
src/audio
src/audio/scream
src/camera
src/classes
src/collision
src/control
src/core
src/core/managers
src/custom
src/entities
src/math
src/memory
src/minigames
src/modelinfo
src/objects
src/patch
src/peds
src/pickups
src/render
src/rw
src/scripts
src/vehicles
src/weapons
)
set_target_properties(openBully PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${BULLY_DIR}"
RUNTIME_OUTPUT_DIRECTORY_DEBUG "${BULLY_DIR}"
RUNTIME_OUTPUT_DIRECTORY_RELEASE "${BULLY_DIR}"
SUFFIX ".asi"
)
if (MSVC)
target_compile_options(openBully PRIVATE
$<$<NOT:$<CONFIG:Debug>>:/O2>
)
else()
target_compile_options(openBully PRIVATE
$<$<NOT:$<CONFIG:Debug>>:-O2>
)
endif()