diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-11 21:32:30 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-11 21:32:30 +0100 |
commit | a6803980f1e74ecf1abb007b7c77f00d2cd92c43 (patch) | |
tree | 425ca961b27117d6e5d5fa0ae5cfca93351e0b33 /game/CMakeLists.txt | |
parent | 6bc0025e4c24ed6659d993f3469c10615fb0e273 (diff) | |
parent | 525636bb2158ecea68ebb9d6b8d2dc722524c5e5 (diff) |
merge master into loek/doxygen
Diffstat (limited to 'game/CMakeLists.txt')
-rw-r--r-- | game/CMakeLists.txt | 124 |
1 files changed, 124 insertions, 0 deletions
diff --git a/game/CMakeLists.txt b/game/CMakeLists.txt new file mode 100644 index 0000000..a94beca --- /dev/null +++ b/game/CMakeLists.txt @@ -0,0 +1,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 Release) +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 .) + |