Back to Xournalpp

CMake configuration flags

cmake/README.md

1.3.42.9 KB
Original Source

CMake configuration flags

Details about installation process are on our wiki.

Here you can find complete list of Xournal++ CMake flags (sorted by categories). Advanced settings are marked with [A].

DEBUG – debugging switches (shouldn't be enabled for normal usage), all [A] and disabled by default

Variable nameDescription
DEBUG_INPUTInput debugging, e.g. eraser events etc
DEBUG_RECOGNIZERShape recognizer debug: output score etc
DEBUG_SCHEDULERScheduler debug: show jobs etc
DEBUG_SHOW_ELEMENT_BOUNDSDraw a surrounding border to all elements
DEBUG_SHOW_PAINT_BOUNDSDraw a border around all painted rects
DEBUG_SHOW_REPAINT_BOUNDSDraw a border around all repaint rects

DEV – development options, which in most cases should be leaved as they are

Variable nameDefaultDescription
DEV_CALL_LOGOFFCall log (can take loooot of disk space and IO!)
DEV_CHECK_GTK3_COMPAT [A]OFFAdds a few compiler flags to check basic GTK3 upgradeability support (still compiles for GTK2!)
DEV_ENABLE_GCOV [A]OFFBuild with gcov support
DEV_METADATA_FILE [A]metadata.iniMetadata file name
DEV_METADATA_MAX_ITEMS [A]50Maximal amount of metadata elements
DEV_PRINT_CONFIG_FILE [A]print-config.iniPrint config file name
DEV_SETTINGS_XML_FILE [A]settings.xmlSettings file name
DEV_TOOLBAR_CONFIG [A]toolbar.iniToolbar config file name
DEV_ERRORLOG_DIR [A]errorlogsDirectory where errorlogfiles will be placed

EXT – add dependency basing on precompiled deb packages (UNIX only)

Variable nameDefaultDescription
EXT_GLIBMMOFFGlibmm and Gtkmm binaries

ENABLE – basic stable features support

Variable nameDefaultDescription
ENABLE_GTESTOFFDownload and build GoogleTest (if not previously done) and build tests instead of xournalpp application

PATH – here you can specify alternative location of these binaries (there are no defaults)

Variable nameDescription
PATH_ARar is needed to unpack debs (if any of EXT packages are added)
PATH_GITgit is needed to include info about issue tracker and other git-repo-realted info
PATH_TARtar is needed to unpack debs (if any of EXT packages are added)
PATH_WGETwget is needed to download debs (if any of EXT packages are added)