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.

21 lines
466 B

  1. cmake_minimum_required(VERSION 2.8)
  2. project(snake)
  3. find_package(Curses REQUIRED)
  4. set(CMAKE_CXX_STANDARD 11)
  5. set(CMAKE_BUILD_TYPE Debug)
  6. set(SOURCES
  7. components/Point.cpp
  8. components/Snack.cpp
  9. components/Snake.cpp
  10. game/Controller.cpp
  11. game/Game.cpp
  12. input-output/Graphics.cpp
  13. input-output/Player.cpp
  14. main.cpp
  15. )
  16. include_directories(${CURSES_INCLUDE_DIR})
  17. add_executable(snake ${SOURCES})
  18. target_link_libraries(snake ${CURSES_LIBRARIES})