Skip to content

Instantly share code, notes, and snippets.

@djpeach
Created September 20, 2019 20:38
Show Gist options
  • Save djpeach/bdfb753f1baf861fee1e64a8cbb473d2 to your computer and use it in GitHub Desktop.
Save djpeach/bdfb753f1baf861fee1e64a8cbb473d2 to your computer and use it in GitHub Desktop.
cmake_minimum_required(VERSION 3.7)
project(game LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(SFML 2.5.1 COMPONENTS system window graphics audio network REQUIRED)
#we add the executable of the program
add_executable(game
main.cpp
)
target_link_libraries(game sfml-system sfml-window sfml-graphics sfml-audio sfml-network )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment