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内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复