With the removal of FindSFML.cmake in SFML 2.5, what is the preferred way of importing it?
I tried this, but it can't find SFMLConfig.cmake
cmake_minimum_required(VERSION 3.17)
project(untitled)
set(CMAKE_CXX_STANDARD 20)
find_package(SFML 2.5.1 COMPONENTS graphics REQUIRED)
add_executable(untitled "main.cpp")
target_link_libraries(untitled sfml-graphics)
The SFML directory is inside the project. I am using CMake with CLion on macOS Catalina