You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
466 B
22 lines
466 B
cmake_minimum_required(VERSION 2.8)
|
|
project(snake)
|
|
|
|
find_package(Curses REQUIRED)
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
set(CMAKE_BUILD_TYPE Debug)
|
|
|
|
set(SOURCES
|
|
components/Point.cpp
|
|
components/Snack.cpp
|
|
components/Snake.cpp
|
|
game/Controller.cpp
|
|
game/Game.cpp
|
|
input-output/Graphics.cpp
|
|
input-output/Player.cpp
|
|
main.cpp
|
|
)
|
|
|
|
include_directories(${CURSES_INCLUDE_DIR})
|
|
add_executable(snake ${SOURCES})
|
|
target_link_libraries(snake ${CURSES_LIBRARIES})
|