这段在那一节有讲解,我找来找去找不到,生成出来的也不也一样
来源:13-4 使用CMake完成库的编译和链接

weixin_宝慕林4291967
2021-06-26
foreach(file ${files})
get_filename_component(name fileNAME)addexecutable({file} NAME)
add_executable(fileNAME)addexecutable({name} KaTeX parse error: Expected 'EOF', got '#' at position 13: {file})
#̲添加要链接的库
tar…{name}
test4
test5
${CONAN_LIBS})
install(TARGETS ${name} RUNTIME DESTINATION bin)
endforeach()
写回答
1回答
-
bennyhuo
2021-06-26
2-3
022021-06-26
相似问题