-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
146 lines (136 loc) · 4.52 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
144
145
cmake_minimum_required(VERSION 3.8)
project(dang)
# specify the C++ standard
set(CMAKE_CXX_STANDARD 17)
#set(CMAKE_CXX_STANDARD_REQUIRED True)
# if you want to see dang debug info drawn, enable this
#add_definitions(-DDANG_DEBUG_PRINT)
#add_definitions(-DDANG_DEBUG_DRAW)
#add_definitions(-DDANG_DEBUG_COLSOLV)
add_compile_options("-Wextra" "-Wdouble-promotion" "-fexceptions" "-Wattributes")
set(SOURCES
src/dang.hpp
src/path/SceneGraph.cpp
src/path/SceneGraph.hpp
src/path/Waypoint.cpp
src/path/Waypoint.hpp
src/bulletml/BMLNode.cpp
src/bulletml/BMLNode.h
src/bulletml/BMLState.cpp
src/bulletml/BMLState.h
src/bulletml/BMLTree.cpp
src/bulletml/BMLTree.h
src/bulletml/BMLBuilder.cpp
src/bulletml/BMLBuilder.h
src/bt/BTNode.cpp
src/bt/BTNode.h
src/bt/NTree.cpp
src/bt/NTree.h
src/bt/NTreeState.cpp
src/bt/NTreeState.h
src/tween/Tweenable.cpp
src/tween/Tweenable.hpp
src/tween/Ease.cpp
src/tween/Ease.hpp
src/tween/TwNull.cpp
src/tween/TwNull.hpp
src/tween/TwAnim.cpp
src/tween/TwAnim.hpp
src/tween/TwPos.cpp
src/tween/TwPos.hpp
src/tween/TwVel.cpp
src/tween/TwVel.hpp
src/tween/TwAcc.cpp
src/tween/TwAcc.hpp
src/tween/TwAccX.cpp
src/tween/TwAccY.cpp
src/tween/TwAccY.hpp
src/tween/TwVelY.cpp
src/tween/TwVelY.hpp
src/tween/TwSequence.cpp
src/tween/TwSequence.hpp
src/tween/TwPosX.cpp
src/tween/TwPosX.hpp
src/tween/TwPosY.cpp
src/tween/TwPosY.hpp
src/Imagesheet.cpp
src/Imagesheet.hpp
src/Gear.cpp
src/Gear.hpp
src/layer/Layer.cpp
src/layer/Layer.hpp
src/layer/TileLayer.cpp
src/layer/TileLayer.hpp
src/layer/SimpleImageLayer.cpp
src/layer/SimpleImageLayer.hpp
src/layer/MessageLayer.cpp
src/layer/MessageLayer.hpp
src/layer/BaseHUDLayer.cpp
src/layer/BaseHUDLayer.hpp
src/Vector2T.hpp
src/RectT.hpp
src/TmxExtruder.cpp
src/TmxExtruder.hpp
src/Event.cpp
src/Event.hpp
src/Dispatcher.cpp
src/Dispatcher.hpp
src/snd/pocketmod.h
src/snd/SndGear.cpp
src/snd/SndGear.hpp
src/snd/wave.h
src/bt/NTBuilder.cpp
src/bt/NTBuilder.h
src/DangFwdDecl.h
src/Rand.cpp
src/Rand.hpp
src/path/Wavepoint.cpp
src/path/Wavepoint.hpp
src/tween/TwPosSpline.cpp
src/tween/TwPosSpline.h
src/sprite/CollisionObject.cpp
src/sprite/CollisionObject.hpp
src/CollisionSolver.cpp
src/CollisionSolver.hpp
src/sprite/SpriteObject.cpp
src/sprite/SpriteObject.hpp
src/sprite/ImageObject.cpp
src/sprite/ImageObject.hpp
src/sprite/MotionObject.cpp
src/sprite/MotionObject.hpp
src/sprite/ColSpr.cpp
src/sprite/ColSpr.hpp
src/sprite/FullColSpr.cpp
src/sprite/FullColSpr.hpp
src/layer/ColSprLayer.cpp
src/layer/ColSprLayer.hpp
src/layer/ImgSprLayer.cpp
src/layer/ImgSprLayer.hpp
src/SprIterator.cpp
src/SprIterator.hpp
src/sprite/ImgSpr.cpp
src/sprite/ImgSpr.hpp
src/layer/SprLayer.cpp
src/layer/SprLayer.hpp
src/sprite/FullImgSpr.cpp
src/sprite/FullImgSpr.hpp
src/sprite/TweenObject.cpp
src/sprite/TweenObject.hpp
)
add_library(DANG STATIC ${SOURCES} )
# make sure to link the 32blit supplied stdlibs when compiling for the 32blit HW
# variable pic_stdlibs is set by the 32blit cmake configuration
if(${CMAKE_SYSTEM_NAME} STREQUAL Generic)
target_link_libraries(DANG ${PIC_STDLIBS})
set_target_properties(DANG PROPERTIES COMPILE_FLAGS "-fPIC -mno-pic-data-is-text-relative -mno-single-pic-base")
endif()
target_include_directories (DANG PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_include_directories (DANG PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src)
SET(32BLIT_LOC "../32blit-sdk/32blit")
include_directories(32blit-sdk/32blit)
target_include_directories (DANG PUBLIC ${32BLIT_LOC})
#target_include_directories (DANG PUBLIC ${32BLIT_LOC}/audio)
#target_include_directories (DANG PUBLIC ${32BLIT_LOC}/engine)
#target_include_directories (DANG PUBLIC ${32BLIT_LOC}/graphics)
#target_include_directories (DANG PUBLIC ${32BLIT_LOC}/math)
#target_include_directories (DANG PUBLIC ${32BLIT_LOC}/types)