Skip to content

Files

Latest commit

hyperupcallTechnius
and
Nov 10, 2022
0479562 · Nov 10, 2022

History

History
51 lines (36 loc) · 1.18 KB

Compile.md

File metadata and controls

51 lines (36 loc) · 1.18 KB

Compilation and Testing

This file contains platform-independent instructions for compiling and developing locally. For instructions on how to create platform-specific packages, or instructions on preliminary steps for building Xournal++, please see these platform-specific instructions:

Get sources

git clone http://github.com/xournalpp/xournalpp
cd xournalpp

Compile

mkdir build
cd build

cmake ..
cmake --build . # For a faster build, set the flag -DCMAKE_BUILD_TYPE=RelWithDebInfo
  • Use cmake-gui .. to graphically configure CMake

Run

# Before running this command, ensure you're in the './build' directory
./xournalpp

Test

The unit tests can be enabled by setting -DENABLE_GTEST=on when running the CMake command. This requires having googletest available, either through your system's package manager or by setting -DDOWNLOAD_GTEST=on to automatically download and build googletest.

mkdir build
cd build

# Build unit test executables
cmake --build . --target test-units

# Run unit tests
cmake --build . --target test