Advertisement
Skylighty

cmake-for-sfml

Aug 25th, 2020
3,255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.54 KB | None | 0 0
  1. cmake_minimum_required(VERSION 3.14)
  2. project(platformowka_again)
  3.  
  4. set(SFML_DIR "C:/SFML")
  5. set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/" ${CMAKE_MODULE_PATH})
  6.  
  7. set(SFML_STATIC_LIBRARIES TRUE)
  8. set(CMAKE_CXX_STANDARD 14)
  9.  
  10. find_package(SFML 2.5.1 COMPONENTS system window graphics audio REQUIRED)
  11. add_executable(${PROJECT_NAME} src/main.cpp src/game.cpp src/game.h src/player.cpp src/player.h src/platform.cpp src/platform.h src/feature.cpp src/feature.h)
  12. target_link_libraries(${PROJECT_NAME} sfml-system sfml-window sfml-graphics sfml-audio)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement