cmake: make major changes to cmake
This commit is contained in:
parent
d3479764e2
commit
7c1fbd1118
4 changed files with 24 additions and 66 deletions
|
@ -2,7 +2,7 @@ FROM debian:bookworm
|
|||
|
||||
RUN apt update && \
|
||||
apt install -y \
|
||||
build-essential cmake git file \
|
||||
build-essential cmake git file tree \
|
||||
libboost-system-dev libboost-thread-dev \
|
||||
libgtest-dev googletest && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
|
|
@ -7,4 +7,9 @@ set -o pipefail
|
|||
cmake -B /libcreate/build -S /libcreate -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS='-Werror'
|
||||
cmake --build /libcreate/build --config Release
|
||||
ctest -C Release --output-on-failure
|
||||
cpack --build /libcreate/build -G DEB
|
||||
cpack --build /libcreate/build -G DEB
|
||||
|
||||
debs=(/libcreate/_packages/*.deb)
|
||||
cp "${debs[0]}" /tmp/libcreate.deb
|
||||
dpkg-deb -R /tmp/libcreate.deb /tmp/libcreate
|
||||
tree /tmp/libcreate
|
Loading…
Add table
Add a link
Reference in a new issue