Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmake_minimum_required(VERSION 3.13)
- project(untitled1)
- set(CMAKE_CXX_STANDARD 17)
- add_executable(untitled1 main.cpp)
- # Detect and add SFML
- set(SFML_ROOT D:/sfml/SFML-2.5.1)
- set(SFML_STATIC_LIBRARIES TRUE)
- set(CMAKE_MODULE_PATH "/usr/share/SFML/cmake/Modules/" ${CMAKE_MODULE_PATH})
- #Find any version 2.X of SFML
- #See the FindSFML.cmake file for additional details and instructions
- find_package(SFML 2 REQUIRED graphics window system)
- if(SFML_FOUND)
- include_directories(${SFML_INCLUDE_DIR})
- target_link_libraries(untitled1 ${SFML_LIBRARIES} ${SFML_DEPENDENCIES})
- endif()
Advertisement
Add Comment
Please, Sign In to add comment