在CMakeLists.txt中添加
find_package(Qt6 COMPONENTS SerialPort REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::SerialPort)
报错:
error: Cannot specify link libraries for target "mytarget" which is not built by this project.
记录,暂未解决。
在CMakeLists.txt中添加
find_package(Qt6 COMPONENTS SerialPort REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::SerialPort)
报错:
error: Cannot specify link libraries for target "mytarget" which is not built by this project.
记录,暂未解决。