update root/CMakeLists.txt, add Threads dependent.