cmakelists.txt的多行注释

偶尔善良 提交于 2019-11-29 08:23:48

CMake>=3.0的时候支持多行注释,以#[[开始进行块注释,并且在块注释的一端与]]结束。

#[[
cuda_add_executable(combine_gray combine_gray.cu)
cuda_add_executable(combine_rgb combine_rgb.cu)
cuda_add_executable(gray gray.cu)
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})
]]
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!