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)
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.
target_link_libraries(image_process ${OpenCV_LIBS})

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