Linking libraries installed with homebrew

cmake_minimum_required(VERSION 3.5)

set(CXX_STANDARD 20)
set(CXX_STANDARD_REQUIRED true)

project(3dmod VERSION 1.0.0
DESCRIPTION “First OpenGL”
LANGUAGES CXX)

CMAKE_PREFIX_PATH(/usr/local/opt)

find_package(glfw3 CONFIG REQUIRED)
find_package(glm CONFIG REQUIRED)
find_package(glad CONFIG REQUIRED)
find_package(assimp CONFIG REQUIRED)
find_package(imgui CONFIG REQUIRED)
find_package(freetype CONFIG REQUIRED)

add_executable(${PROJECT_NAME} main.cpp glad.c)

#target_link_libraries(${PROJECT_NAME} PUBLIC glfw3::glfw3)
#target_link_libraries(${PROJECT_NAME} PUBLIC glm::glm)
#target_link_libraries(${PROJECT_NAME} PUBLIC glad::glad)
#target_link_libraries(${PROJECT_NAME} PUBLIC assimp::assimp)
#target_link_libraries(${PROJECT_NAME} PUBLIC imgui::imgui)
#target_link_libraries(${PROJECT_NAME} PUBLIC freetype::freetype)

include_directories(/usr/local/include)
link_directories(/usr/local/lib)

How do I make this .txt file btetter. Im working with OpenGL on mac

It’s not clear what your question is. Is something not working. It looks like the target_link_libraries calls should be uncommented and the last two lines removed to me.