failed to link the ".a" library into the project

HI,
I created a static library named “libadd.a” using e2 Studio IDE. Later, I initiated a Renesas microcontroller project in Visual Studio Code utilizing the Renesas Build Utilities extension. Unfortunately, I faced challenges in linking the library file to my project. Could someone kindly provide a solution or suggest changes to integrate the static library into my project?

For reference, I have attached the link to the project file: Microsoft OneDrive

What are the error messages, or how do those challenges manifest themselves?

I call a simple ‘add’ function to get the sum of 2 numbers. The library file contains this definition. When I build the project, I get the below-mentioned error:
[build] D:\NexiGo\Code\VisualStudioCode_Project_Workspace\addition\src/hal_entry.c:16: undefined reference to ‘add’.

You are probably missing the actual linking to the library with target_link_libraries().

I included the below-mentioned commands in the CMakeLists.txt

Project minimum required CMake version

cmake_minimum_required(VERSION 3.16.4)

Project configuration

project(addition
VERSION 1.0.0
LANGUAGES C CXX ASM)

include(${CMAKE_CURRENT_LIST_DIR}/cmake/GeneratedSrc.cmake)

Link the library to the executable

target_link_libraries(${PROJECT_NAME}.elf src/libadd.a)