2023-08-10 18:34:43 -05:00
|
|
|
find_package(SFML COMPONENTS graphics window system REQUIRED)
|
|
|
|
|
|
|
|
add_executable(snakeplusplus
|
|
|
|
./main.cpp
|
|
|
|
./gamestate.cpp
|
|
|
|
./snake.cpp
|
|
|
|
./playerinterface.cpp
|
2023-08-18 19:09:57 -05:00
|
|
|
./common.cpp
|
2023-08-10 18:34:43 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(snakeplusplus PUBLIC ${CMAKE_CURRENT_LIST_DIR})
|
|
|
|
|
|
|
|
target_link_libraries(snakeplusplus sfml-graphics)
|
|
|
|
|