X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=CMakeLists.txt;h=bb17c3764827939eaec32cb1cf9747591f957ab5;hb=98a78a7935e46bb8d4975d622fdfb2881043d044;hp=83439d38b123861dfee01033f0d11dbf54879289;hpb=ebace121522f6f9fd92c866a6bbf0145b35d5954;p=nothing.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 83439d38..bb17c376 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,51 +13,68 @@ find_package(SDL2 REQUIRED) find_package(SDL2_mixer REQUIRED) +include_directories(src/) include_directories(${SDL2_INCLUDE_DIR}) include_directories(${SDL2_MIXER_INCLUDE_DIR}) set(SOURCE_FILES - src/main.c - src/player.c - src/platforms.c - src/rect.c - src/point.c - src/camera.c - src/error.c - src/game.c - src/lt.c - src/lt/lt_slot.c - src/level.c - src/goals.c - src/renderer.c - src/triangle.c src/color.c - src/rigid_rect.c - src/dying_rect.c - src/lava.c - src/wavy_rect.c + src/game.c + src/game/camera.c + src/game/level.c + src/game/level/background.c + src/game/level/boxes.c + src/game/level/goals.c + src/game/level/lava.c + src/game/level/lava/wavy_rect.c + src/game/level/platforms.c + src/game/level/player.c + src/game/level/player/dying_rect.c + src/game/level/player/rigid_rect.c + src/game/level/solid.c + src/game/sound_samples.c + src/main.c + src/math/mat3x3.c + src/math/point.c + src/math/rand.c + src/math/rect.c + src/math/triangle.c + src/rigid_bodies.c + src/sdl/renderer.c + src/system/error.c + src/system/lt.c + src/system/lt/lt_adapters.c + src/system/lt/lt_slot.c ) set(HEADER_FILES - src/player.h - src/platforms.h - src/rect.h - src/point.h - src/camera.h - src/error.h - src/game.h - src/lt.h - src/lt/lt_slot.h - src/level.h - src/goals.h - src/renderer.h - src/triangle.h - src/pi.h src/color.h - src/rigid_rect.h - src/dying_rect.h - src/lava.h - src/wavy_rect.h + src/game.h + src/game/camera.h + src/game/level.h + src/game/level/background.h + src/game/level/boxes.h + src/game/level/goals.h + src/game/level/lava.h + src/game/level/lava/wavy_rect.h + src/game/level/platforms.h + src/game/level/player.h + src/game/level/player/dying_rect.h + src/game/level/player/rigid_rect.h + src/game/level/solid.h + src/game/sound_samples.h + src/math/mat3x3.h + src/math/pi.h + src/math/point.h + src/math/rand.h + src/math/rect.h + src/math/triangle.h + src/rigid_bodies.h + src/sdl/renderer.h + src/system/error.h + src/system/lt.h + src/system/lt/lt_adapters.h + src/system/lt/lt_slot.h ) add_executable(nothing ${SOURCE_FILES} ${HEADER_FILES}) @@ -87,6 +104,7 @@ if(("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") OR ("${CMAKE_CXX_COMPILER_ID}" ST -Wshadow \ -Wstrict-prototypes \ -Wwrite-strings \ + -Wswitch \ -fno-common \ -pedantic \ -std=c11 \