Compiling .cu file a long with its header file in command line and in CMake

Hi All

If I have file which contains definitions for device and host functions , and I have cudaKernelHeader.h which has prototypes for these functions defined in cudaKernal . I used

nvcc -c

to compile the cuda program but unfortunately nvcc could not find cudaKernelHeader.h which is included in file .

The question :
1- how can I compile along with its header file cudaKernelHeader.h in command line .

2- Also , I am wondering how to compile them in CMake , actually I used these two statments but also the CMake could not find the header file :

cuda_add_executable(cudaExecutable cudaKernelHeader.h )

Thank you in advance .