Change folder structure (Add folders: src, include)
Add src folder for all .c and include folder .h files => clearer structure, no documents mixed into code files
This commit is contained in:
parent
86c18541e4
commit
7309707a97
@ -22,20 +22,20 @@ find_package(SDL2 REQUIRED)
|
||||
|
||||
|
||||
#--- Include directories ---
|
||||
include_directories(${SDL2_INCLUDE_DIRS} ./)
|
||||
include_directories(${SDL2_INCLUDE_DIRS} ./include ./src)
|
||||
|
||||
|
||||
# --- Source files ---
|
||||
# Add all used source files here:
|
||||
set(SOURCES
|
||||
main.cpp
|
||||
config.c
|
||||
food.c
|
||||
game.c
|
||||
input.c
|
||||
menu.c
|
||||
render.c
|
||||
snake.c
|
||||
src/main.cpp
|
||||
src/config.c
|
||||
src/food.c
|
||||
src/game.c
|
||||
src/input.c
|
||||
src/menu.c
|
||||
src/render.c
|
||||
src/snake.c
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user