forked from thetrueoneshots/CWSDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
143 lines (143 loc) · 4.69 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
cmake_minimum_required (VERSION 3.8)
if(NOT CMAKE_CL_64)
message(FATAL_ERROR "CWSDK REQUIRES clang-cl x64 to build. " )
endif()
if(CMAKE_BUILD_TYPE MATCHES "Debug")
message(FATAL_ERROR "CWSDK cannot be built debug mode due to MSVC binary compatibility issues." )
endif()
project("CWSDK" VERSION "1.0.0")
add_library (CWSDK
"cwsdk.cpp"
"common/BytesIO.cpp"
"common/ColorRGB.cpp"
"common/math.cpp"
"common/Matrix4.cpp"
"common/RGBA.cpp"
"common/Vector2.cpp"
"common/Vector3.cpp"
"cube/AdaptionWidget.cpp"
"cube/AI.cpp"
"cube/BaseWidget.cpp"
"cube/Block.cpp"
"cube/BlockProperties.cpp"
"cube/CharacterPreviewWidget.cpp"
"cube/CharacterStyleWidget.cpp"
"cube/CharacterWidget.cpp"
"cube/ChatWidget.cpp"
"cube/Client.cpp"
"cube/Connection.cpp"
"cube/Controls.cpp"
"cube/ControlsWidget.cpp"
"cube/Creature.cpp"
"cube/cube.cpp"
"cube/Database.cpp"
"cube/EnchantWidget.cpp"
"cube/Equipment.cpp"
"cube/Field.cpp"
"cube/FormulaDetailsWidget.cpp"
"cube/Game.cpp"
"cube/GUI.cpp"
"cube/HelpWidget.cpp"
"cube/Host.cpp"
"cube/Interaction.cpp"
"cube/InventoryWidget.cpp"
"cube/Item.cpp"
"cube/ItemStack.cpp"
"cube/MapOverlayWidget.cpp"
"cube/MultiplayerWidget.cpp"
"cube/Music.cpp"
"cube/Options.cpp"
"cube/OptionsWidget.cpp"
"cube/PreviewWidget.cpp"
"cube/Projectile.cpp"
"cube/QuestionWidget.cpp"
"cube/ResolutionInfo.cpp"
"cube/ServerUpdates.cpp"
"cube/Speech.cpp"
"cube/SpeechText.cpp"
"cube/SpeechTextNode.cpp"
"cube/SpeechWidget.cpp"
"cube/Spirit.cpp"
"cube/Sprite.cpp"
"cube/SpriteManager.cpp"
"cube/SpriteWidget.cpp"
"cube/SystemWidget.cpp"
"cube/TextFX.cpp"
"cube/VoxelWidget.cpp"
"cube/World.cpp"
"cube/WorldMap.cpp"
"cube/XAudio2Engine.cpp"
"cube/Zone.cpp"
"gfx/Chunk.cpp"
"gfx/ChunkBuffer.cpp"
"gfx/D3D11Graphics.cpp"
"gfx/D3D11IndexBuffer.cpp"
"gfx/D3D11Renderer.cpp"
"gfx/D3D11VertexBuffer.cpp"
"gfx/Graphics.cpp"
"gfx/IndexBuffer.cpp"
"gfx/Renderer.cpp"
"gfx/VertexBuffer.cpp"
"msvc/_Thrd_t.cpp"
"plasma/Array.cpp"
"plasma/Attribute.cpp"
"plasma/ContinuousAttribute.cpp"
"plasma/D3D11Engine.cpp"
"plasma/DiscreteAttribute.cpp"
"plasma/Display.cpp"
"plasma/Engine.cpp"
"plasma/FontEngine.cpp"
"plasma/Keyable.cpp"
"plasma/Matrix.cpp"
"plasma/NamedObject.cpp"
"plasma/Node.cpp"
"plasma/Object.cpp"
"plasma/ObjectManager.cpp"
"plasma/ScalableFont.cpp"
"plasma/Transformation.cpp"
"plasma/Vector.cpp"
"plasma/Widget.cpp"
"plasma/Shape.h"
"plasma/TextShape.h"
"cube/BaseWidget.h"
"cube/StartMenuWidget.h"
"plasma/TextShape.h"
"plasma/Map.h"
"plasma/Map.cpp"
"cube/StartMenuWidget.cpp"
"cube/SpawnPoint.h"
"cube/SpawnPoint.cpp"
"cube/SpawnPointFactory.h"
"cube/SpawnPointFactory.cpp"
"cube/SaveData.h"
"modhelper/DayTime/Daytime.h"
"modhelper/DayTime/Daytime.cpp"
"modhelper/Utils/Utils.h"
"modhelper/Utils/Utils.cpp"
"modhelper/CommandManager/CommandManager.h"
"modhelper/CommandManager/CommandManager.cpp"
"modhelper/Parser/Parser.h"
"modhelper/Parser/Parser.cpp"
"modhelper/ModMetadata/ModMetadata.h"
"modhelper/ModMetadata/ModMetadata.cpp"
"modhelper/Items/ModItem.h"
"modhelper/Items/ItemData.h"
"modhelper/SpriteLoader/SpriteLoader.h"
"modhelper/Items/ItemBuilder.cpp"
"modhelper/SpriteLoader/SpriteLoader.cpp"
"modhelper/Items/ItemManager.h"
"modhelper/Items/ItemRequest.h"
"modhelper/CraftingManager/CraftingManager.h"
"modhelper/CraftingManager/CraftingManager.cpp"
"modhelper/Widget/ModBaseWidget.cpp")
target_link_libraries(CWSDK winmm.lib)
target_include_directories (CWSDK PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_include_directories (CWSDK PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/CWSDK)
target_include_directories (CWSDK PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/CWSDK/common)
target_include_directories (CWSDK PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/CWSDK/cube)
target_include_directories (CWSDK PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/CWSDK/gfx)
target_include_directories (CWSDK PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/CWSDK/IDA)
target_include_directories (CWSDK PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/CWSDK/modhelper)
target_include_directories (CWSDK PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/CWSDK/msvc)
target_include_directories (CWSDK PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/CWSDK/plasma)
target_include_directories (CWSDK PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/CWSDK/steam)