How to solve the error of "undefined reference to `cudaGetDeviceCount" within CMake (CMakeLists.txt)

Hi, guys,
I am absolute learning of CUDA, and when running a CUDA script, I got an error as:

FAILED: Cuda_notes
: && /usr/bin/c++ -g CMakeFiles/Cuda_notes.dir/deviceQuery.cpp.o -o Cuda_notes && :
/usr/bin/ld: CMakeFiles/Cuda_notes.dir/deviceQuery.cpp.o: in function _cudaGetErrorEnum(cudaError)': /home/xxx/CUDA/Cuda_notes/cuda-samples/Common/helper_cuda.h:54: undefined reference to cudaGetErrorName’
/usr/bin/ld: CMakeFiles/Cuda_notes.dir/deviceQuery.cpp.o: in function main': /home/xxx/CUDA/Cuda_notes/deviceQuery.cpp:51: undefined reference to cudaGetDeviceCount’

I want to know what command I should add to my CMakeLists.txt, which currently is:

cmake_minimum_required(VERSION 3.23)

#set(CMAKE_CUDA_COMPILER "/usr/local/cuda/bin/nvcc")
set(CMAKE_CUDA_ARCHITECTURES "35;50;52;60;61;70;75;80;86")
project(Cuda_notes LANGUAGES CUDA CXX C)
#find_package(CUDAToolkit)

set(CMAKE_CXX_STANDARD 23)

set(CMAKE_CUDA_STANDARD 14)
set(CMAKE_CUDA_STANDARD_REQUIRED ON)
include_directories(SYSTEM "${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES}")
#/home/xxx/CUDA/Cuda_notes/cuda-samples/Common
include_directories(SYSTEM "/home/xxx/CUDA/Cuda_notes/cuda-samples/Common")
include_directories(.)
#link_libraries(cudart)
#target_link_libraries(cudart)

add_executable(Cuda_notes deviceQuery.cpp)

Your answer and guide will be appreciated!