aboutsummaryrefslogtreecommitdiff
path: root/game/CMakeLists.txt
blob: b39416b8a00746bbdd1e3fe22eb498f32c9c6a49 (plain)
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
cmake_minimum_required(VERSION 3.28)

set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
set(CMAKE_BUILD_TYPE Debug)
project(game C CXX)

add_subdirectory(../src crepe)

add_executable(main)

target_sources(main PUBLIC
	# enemy
	enemy/BattleScript.cpp
	enemy/EnemyPool.cpp
	enemy/EnemyBulletScript.cpp
	enemy/EnemyBulletSubScene.cpp
	enemy/EnemyBulletPool.cpp
	enemy/EnemySubScene.cpp
	enemy/EnemyScript.cpp

	#background
	background/AquariumSubScene.cpp
	background/AquariumScript.cpp
	background/BackgroundSubScene.cpp
	background/ForestParallaxScript.cpp
	background/ForestSubScene.cpp
	background/HallwaySubScene.cpp
	background/StartSubScene.cpp
	background/HallwayScript.cpp

	# mainscenes
	GameScene.cpp
	menus/shop/ShopMenuScene.cpp
	menus/shop/ShopLoadScript.cpp
	menus/shop/ButtonBuySelectBubbleScript.cpp
	menus/shop/ButtonBuySelectBulletScript.cpp
	menus/mainmenu/MainMenuScene.cpp
	PreviewScene.cpp
	main.cpp

	# missile
	missile/MissilePool.cpp
	missile/MissileScript.cpp
	missile/MissileSubScene.cpp
	missile/AlertSubScene.cpp
	missile/AlertScript.cpp
	missile/SpawnEvent.cpp

	#scheduling
	scheduler/ObjectsScheduler.cpp

	# Preview
	preview/SmokeSubScene.cpp
	preview/NpcSubScene.cpp
	preview/NpcScript.cpp
	preview/PrevPlayerSubScene.cpp
	preview/PrevPlayerScript.cpp
	preview/PreviewStopRecSubScript.cpp
	preview/PreviewStartRecSubScript.cpp
	preview/PreviewReplaySubScript.cpp

	# scripts
	GameScene.cpp
	MoveCameraManualyScript.cpp
	StartGameScript.cpp
	QuitScript.cpp

	# player
	player/PlayerScript.cpp
	player/PlayerSubScene.cpp
	player/PlayerBulletPool.cpp
	player/PlayerBulletScript.cpp
	player/PlayerBulletSubScene.cpp
	player/PlayerEndScript.cpp
	player/PlayerAudioScript.cpp

	# workers
	workers/WorkersSubScene.cpp
	workers/WorkerScript.cpp
	workers/PanicFromPlayerScript.cpp
	workers/CollisionScript.cpp

	# menus
	menus/BannerSubScene.cpp
	menus/ButtonSubScene.cpp
	menus/IButtonScript.cpp
	menus/ButtonSetShopSubScript.cpp
	menus/ButtonSetMainMenuSubScript.cpp
	menus/ButtonReplaySubScript.cpp
	menus/ButtonNextMainMenuSubScript.cpp
	menus/FloatingWindowSubScene.cpp
	menus/IFloatingWindowScript.cpp
	menus/ButtonShowCreditsSubScript.cpp
	menus/mainmenu/ButtonTransitionPreviewSubScript.cpp
	menus/mainmenu/ITransitionScript.cpp
	menus/mainmenu/TransitionStartSubScript.cpp
	menus/mainmenu/CreditsSubScene.cpp
	menus/mainmenu/CreditsSubScript.cpp
	menus/endgame/EndGameSubScene.cpp
	menus/endgame/EndGameSubScript.cpp

	# coins
	coins/CoinSubScene.cpp
	coins/CoinPoolSubScene.cpp
	coins/CoinSystemScript.cpp
	coins/CoinScript.cpp

	# hud
	hud/HudSubScene.cpp
	hud/HudScript.cpp
	hud/SpeedScript.cpp

	#random
	Random.cpp
)

add_subdirectory(background)
add_subdirectory(prefab)

target_link_libraries(main PUBLIC crepe)
target_include_directories(main PRIVATE .)