I try to build SFML project with CMAKE , but an error occurred . Just like below:
SFML found but some of its dependencies are missing ( FreeType OpenAL
VorbisFile VorbisEnc Vorbis Ogg FLAC)
My CMakeLists.txt is:
cmake_minimum_required(VERSION 3.16)
project(Test01)
set(CMAKE_CXX_STANDARD 20)
set(SFML_STATIC_LIBRARIES TRUE)
set(SFML_DIR "../SFML-master-t2")
find_package(SFML REQUIRED COMPONENTS audio network graphics window system)
add_executable(Test01 main.cpp)
target_link_libraries(Test01 sfml-graphics sfml-audio sfml-network sfml-window sfml-system)