feat: fruits, globals, input, snake, point, window
This commit is contained in:
1 parent
636ebae6a3
commit
cdcffc40ea
13 files changed
+231
-57
No files matched your search
@@ -4,11 +4,19 @@ include_directories(include)
|
||||
set(SOURCES
|
||||
src/main.cpp
|
||||
src/snake.cpp
|
||||
src/input.cpp
|
||||
src/window.cpp
|
||||
src/point.cpp
|
||||
src/fruit.cpp
|
||||
)
|
||||
add_executable(snake ${SOURCES})
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
set(CMAKE_C_STANDARD 23)
|
||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||
find_package(Curses REQUIRED)
|
||||
include_directories(${CURSES_INCLUDE_DIR})
|
||||
target_link_libraries(snake ${CURSES_LIBRARIES})
|
||||
|
||||
|
||||
# find_package(SDL3 CONFIG REQUIRED) # An example of how to import libraries from vcpkg
|
||||
# target_link_libraries(Game PRIVATE SDL3::SDL3)
|
||||
Reference in new issue
Block a user