14 lines
300 B
CMake
14 lines
300 B
CMake
|
find_package(SFML COMPONENTS graphics window system REQUIRED)
|
||
|
|
||
|
add_executable(snakeplusplus
|
||
|
./main.cpp
|
||
|
./gamestate.cpp
|
||
|
./snake.cpp
|
||
|
./playerinterface.cpp
|
||
|
)
|
||
|
|
||
|
target_include_directories(snakeplusplus PUBLIC ${CMAKE_CURRENT_LIST_DIR})
|
||
|
|
||
|
target_link_libraries(snakeplusplus sfml-graphics)
|
||
|
|