【cmake】Cmake编译引用thread

Cmake编译引用thread

find_package (Threads)
add_executable (myapp main.cpp ...)
target_link_libraries (myapp ${CMAKE_THREAD_LIBS_INIT})

©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页