diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e4cf6a..1865f29 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,10 +1,17 @@ cmake_minimum_required(VERSION 3.10) -project(snake LANGUAGES C) +project(applicant LANGUAGES C) # find_package(ncurses REQUIRED) -add_executable(snake src/main.c +# TODO: Find a way to check or autoinstall ncurses on Windows +add_executable(fieldgame + src/main.c + src/bot.c +) +add_library(applicant src/applicant.c - src/bot.c) -target_include_directories(snake PUBLIC $) -target_link_libraries(snake ncurses) +) +target_include_directories(fieldgame PUBLIC $) +target_include_directories(applicant PUBLIC $) +target_link_libraries(fieldgame ncurses applicant) +