Using Cmake and find: Configuring incomplete, errors occurred!

And here is my CMakeLists.txt file:

cmake_minimum_required(VERSION 3.18)

project(${igraph_test})

find_package(igraph REQUIRED)

add_executable( $ {igraph_test} ${main}.cpp)

target_link_libraries(${igraph_test} PUBLIC igraph::igraph)