Open YeongJunKim opened 2 years ago
여기를 참고했음 installation
우선 cmake 할때 optiond으로 다음을 넣어준다
-DCMAKE_EXPORT_COMPILE_COMMANDS=1
ex)
$ mkdir build $ cd build $ cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=1 $ mv compile_commands.json ${vscode root path}
cmake build 폴더에 compile_commands.json이 생성되는데 이 파일을 현재 vscode root로 넣어주면 path 등록이 완료된다.
여기를 참고했음 installation
우선 cmake 할때 optiond으로 다음을 넣어준다
ex)
cmake build 폴더에 compile_commands.json이 생성되는데 이 파일을 현재 vscode root로 넣어주면 path 등록이 완료된다.