VSCode中编译调试CMake组织的C++项目

编写CMakeLists.txtcmake_minimum_required(VERSION 2.6) project(vscode_cmake)set(SRC_LIST main.cpp)add_executable(test ${SRC_LIST})编写tasks.json下面的操作依次为cd

CMake 使用记录

link_libraries和target_link_libraries区别在cmake语法中,link_libraries和target_link_libraries是很重要的两个链接库的方式,虽然写法上很相似,但是功能上有很大区别:1,link_libraries用在add_executable
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×