我是靠谱客的博主 善良大神,这篇文章主要介绍cmakelists.txt的多行注释,现在分享给大家,希望可以做个参考。

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})
]]

最后

以上就是善良大神最近收集整理的关于cmakelists.txt的多行注释的全部内容,更多相关cmakelists.txt内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(63)

评论列表共有 0 条评论

立即
投稿
返回
顶部