At the cmake
step, you can customize a few things by using cmake defines.
The generic syntax is:
cd $(mktemp -d) # some empty(!) build directory
cmake /path/to/dspdfviewer/source -DSomeOption=ON -DSomethingElse=OFF
make # builds the app
cmake . -DSomeOption=OFF # change from inside the build dir
make # rebuild with changed option
Boolean options in cmake
are specified with -DSomeOpt=ON
and OFF
, respectively.
For string-type options you can specify an arbitrary string, just make sure to correctly
escape it for your shell.
By default, you will need the following external software:
boost
cmake
qt5
poppler
with the Qt5 bindingspdflatex
with latex-beamer
package installedThe following cmake
options manipulate the compilation and dependency list:
DSPDFVIEWER_VERSION
string
dspdfviewer --version
.
Use this if you’re packaging dspdfviewer
for a distribution and want
to include a dist-specific version.git describe
, with a hardcoded
fallback version number (such as, when not building from a git clone).UpdateTranslations
boolean, default OFF
cmake
regenerate the .ts
files.
Be warned that when this switch is ON, cmake sees the .ts
files
as output files and will delete them if you call make clean
.BuildTests
boolean, default ON
RunDualScreenTests
boolean, default ON
RunTestsOnBigEndian
boolean, default OFF
UsePrerenderedPDF
boolean, default OFF
BoostStaticLink
boolean, default OFF
boost
libraries statically (ON) or dynamically (OFF)WindowsStaticLink
boolean, default ON
/MT
instead of the /MD
compiler flags.CodeCoverage
boolean, default OFF
DownloadTestPDF
back to compile from source