CMake>=3.0
的时候支持多行注释,以#[[
开始进行块注释,并且在块注释的一端与]]
结束。
注意: #[[ 中间不要有空格!
#[[
cuda_add_executable(combine_gray combine_gray.cu)
cuda_add_executable(combine_rgb combine_rgb.cu)
cuda_add_executable(gray )
cuda_add_executable(struct_test struct_pointer.cu)
cuda_add_executable(struct_array struct_array.cu)
]]
cuda_add_executable(multi_stream_gray multi_stream_gray.cu)
#[[
target_link_libraries(combine_gray ${OpenCV_LIBS})
target_link_libraries(combine_rgb ${OpenCV_LIBS})
target_link_libraries(gray ${OpenCV_LIBS})
]]