Cuda programming to convert colored image to black and white

how to use cmake to create the following txt file on google colab
cmake_minimum_required(VERSION 2.8)
project(image_process)
Find_package(OpenCV REQUIRED) # will go to FindXXX.cmake or XXXConfig.cmake to return some variables
Find_package(CUDA REQUIRED) #REQUIRED means that if you can’t find it, you will get an error.
cuda_add_executable(image_process main.cu)
target_link_libraries(image_process ${OpenCV_LIBS})

may be of interest: Running and configuring CUDA and OpenCV C++ on Colab Cloud - YouTube