# # snake/CMakeLists.txt -- # cmake_minimum_required(VERSION 2.6) project(SNAKE C) include(FindCurses) add_executable(snake main.c snake.c dlist.c) target_link_libraries(snake ${CURSES_LIBRARIES}) if(CMAKE_COMPILER_IS_GNUCC) add_definitions(--std=c99 -Wall) endif()