본문 바로가기
IT/C++

Install Google Test and Google Mock on Ubuntu

by Spring Up!! 2023. 8. 11.
반응형
cd ~
git clone https://github.com/google/googletest.git
cd googletest
mkdir build && cd build
cmake .. -DBUILD_SHARED_LIBS=OFF -DINSTALL_GTEST=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr
cmake --build .
sudo cmake --install .
sudo ldconfig

참고자료: https://gist.github.com/dlime/313f74fd23e4267c4a915086b84c7d3d

반응형

댓글