mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-10 15:20:54 +00:00
f8e97e0ed5
Also add a pkg-config runtime test that would have caught the error.
24 lines
542 B
Bash
Executable File
24 lines
542 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Test that the installed qpdf development packages enable a qpdf
|
|
# application to be build with cmake using qpdf's cmake package
|
|
# information. Requires cmake as well as libqpdf development
|
|
# dependencies.
|
|
#
|
|
set -ex
|
|
|
|
TMP=$1
|
|
if [ ! -d "$TMP" ]; then
|
|
echo 1>&2 "Usage: $0 tmp-dir"
|
|
exit 2
|
|
fi
|
|
|
|
cp pkg-test/qpdf-version.cc $TMP
|
|
cd $TMP
|
|
pkg-config libqpdf --modversion
|
|
pkg-config libqpdf --libs --static
|
|
g++ qpdf-version.cc -o qpdf-version \
|
|
$(pkg-config libqpdf --cflags) \
|
|
$(pkg-config libqpdf --libs)
|
|
./qpdf-version
|