Guest User

Untitled

a guest
Dec 18th, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. cmake_minimum_required(VERSION 3.13)
  2. project(untitled1)
  3.  
  4. set(CMAKE_CXX_STANDARD 17)
  5.  
  6. add_executable(untitled1 main.cpp)
  7.  
  8. # Detect and add SFML
  9. set(SFML_ROOT D:/sfml/SFML-2.5.1)
  10. set(SFML_STATIC_LIBRARIES TRUE)
  11.  
  12. set(CMAKE_MODULE_PATH "/usr/share/SFML/cmake/Modules/" ${CMAKE_MODULE_PATH})
  13. #Find any version 2.X of SFML
  14. #See the FindSFML.cmake file for additional details and instructions
  15.  
  16. find_package(SFML 2 REQUIRED graphics window system)
  17.  
  18.  
  19. if(SFML_FOUND)
  20. include_directories(${SFML_INCLUDE_DIR})
  21. target_link_libraries(untitled1 ${SFML_LIBRARIES} ${SFML_DEPENDENCIES})
  22. endif()
Advertisement
Add Comment
Please, Sign In to add comment