sfml with xcode on mac any step by step to make run

hi i am trying to connect sfml to xcode on my mac from a week ago and i'm frustated i have install sfml throgh homebrew i also i have also intalled xcode on my mac no problem but now there is no clear explanation on how to connect sfml to xcode . all the tutorial are very old and no even the webside of sfml is giving a good help . please there is someone can help me out there

Replies

I installed sfml with home-brew, but I use CLION, not XCODE, and it just works for me, here is one of my cmake files

cmake_minimum_required(VERSION 3.25)
project(sfmlDemo02)

set(CMAKE_CXX_STANDARD 23)

add_executable(sfmlDemo main.cpp)


include_directories(/usr/local/include)
find_package(SFML 2.5 COMPONENTS system window graphics network audio REQUIRED)
include_directories(${SFML_INCLUDE_DIRS})

target_link_libraries(sfmlDemo sfml-system sfml-window sfml-graphics sfml-audio sfml-network)