Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions docker/install/ubuntu_install_core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ apt-get update && apt-get install -y --no-install-recommends \
libcurl4-openssl-dev libssl-dev libopenblas-dev g++ sudo \
apt-transport-https graphviz pkg-config curl


cd /usr/src/gtest && cmake CMakeLists.txt && make && cp *.a /usr/lib
cd /usr/src/gmock && cmake CMakeLists.txt && make && cp *.a /usr/lib
if [[ -d /usr/src/googletest ]]; then
# Single package source (Ubuntu 18.04)
# googletest is installed via libgtest-dev
cd /usr/src/googletest && cmake CMakeLists.txt && make && cp -v {googlemock,googlemock/gtest}/*.a /usr/lib
else
# Split source package (Ubuntu 16.04)
# libgtest-dev and google-mock
cd /usr/src/gtest && cmake CMakeLists.txt && make && cp -v *.a /usr/lib
cd /usr/src/gmock && cmake CMakeLists.txt && make && cp -v *.a /usr/lib
fi