build: Add gtest dependency in Dockerfile.*

Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
This commit is contained in:
Jaehyun Kim 2026-02-27 15:20:49 +09:00
parent 92bb9b8ec9
commit 96f81b08ff
2 changed files with 13 additions and 1 deletions

View File

@ -53,6 +53,17 @@ RUN source /opt/rh/devtoolset-11/enable && \
make -j`nproc` && \
make install
# Download and build GTest
RUN wget https://github.com/google/googletest/archive/refs/tags/v1.14.0.tar.gz && \
tar -xvf v1.14.0.tar.gz && \
rm v1.14.0.tar.gz
RUN source /opt/rh/devtoolset-11/enable && \
cd googletest-1.14.0 && \
mkdir build && cd build && \
cmake .. && \
make -j`nproc` && \
make install
FROM base-dependencies AS builder
COPY . /OpenSTA

View File

@ -16,7 +16,8 @@ RUN apt-get update && \
bison \
flex \
automake \
autotools-dev
autotools-dev \
libgtest-dev
# Download CUDD
RUN wget https://raw.githubusercontent.com/davidkebo/cudd/main/cudd_versions/cudd-3.0.0.tar.gz && \