Skip to content
KMyMoney Personal Finance Manager
Branch: master
Clone or download
Thomas Baumgart
Latest commit e2b08c0 Jul 7, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
3rdparty Patch KService for AppImage, try 4 Nov 4, 2018
cmake/modules Fix detection of clientuid support Jun 17, 2018
contrib Added small handy script tools Apr 19, 2019
doc Updated screenshots from payee views for 5.0.5. Jun 29, 2019
kmymoney Merge remote-tracking branch 'origin/5.0' Jul 7, 2019
maintainer maintainer/release-windows-packages: fix ticket description for src p… Jun 3, 2019
packaging/linux/appimage Make sure we set VERSION so linuxdeployqt/appimagetool knows how to n… Feb 2, 2019
tools Correction of setting up import of tax attributes from gnucash xea file Nov 25, 2018
.arcconfig Add config file for arc (phabricator cli tool) Feb 1, 2017
.gitignore Started adding onlinebanking including sending credit transfers Dec 7, 2013
.krazy Exclude common build directories from krazy checks Jun 4, 2010
AUTHORS Initial commit of code May 11, 2009
BUGS REVIEW: 103869 Feb 5, 2012
CMakeLists.txt Merge remote-tracking branch 'origin/5.0' Jul 7, 2019
COPYING Updated address of FSF in COPYING Jun 27, 2015
ChangeLog Frameworks initial commit. Jun 29, 2014
ChangeLog.original Initial commit of code May 11, 2009
INSTALL Update build and install instructions Oct 17, 2010 i18n: do not extract messages from 'tests' subdirs Jul 19, 2016
README.Fileformats Initial commit of code May 11, 2009
README.cmake Some clean up on CMakeLists.txt and base directory Feb 24, 2016
README.ofx Updated to current state of affairs. Oct 20, 2010
TODO Modified URLs to use https instead of http Aug 3, 2017 Use the first normalize tool found in PATH Nov 17, 2012
config-kmymoney-version.h.cmake Changed to CMake 3.1 Jun 13, 2016
config-kmymoney.h.cmake Adjust some standard paths for AppImage Sep 22, 2018 Don't include build directory in doxygen output Aug 7, 2017


KMyMoney README.cmake
Author: Joerg Rodehueser <>
    and Holger <>
Date  : Feb 7 2009

This README briefly describes how to build KMyMoney with cmake.

Quick-start 0: Precondition

Check that cmake is installed on your machine and is in your PATH.
To do so, just type

$ cmake --version

on your command line.

For debian/ubuntu user the following command will check for
required packages to build KMyMoney:

  sudo apt-get build-dep kmymoney

Quick-start 1: Build KMyMoney

cmake is designed so that the build process can be done in a separate
directory. This is highly recommended for users and required for packagers.

Go to the top level of the git working directory.
To build KMyMoney in the subdirectory ./build/ type

$ mkdir build
$ cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr
    to generate the Makefiles.
$ ccmake .
    to change the configuration of the build process. (optional)

Congratulations, your Makefiles were generated!
Now you could just type

$ make
    to build the project in the build/ directory.

Note that 'make' automatically checks whether any CMakeLists.txt file
has changed and reruns cmake if necessary.

$ make install
    to install the project. You have to install KMyMoney to run it.
Use sudo or switch to a superuser to run this command.

Congratulations, you will never have a chaos of generated files
between the important source files again!

Quick-start 2: How to compile Debug-Builds

As an example configuration option, you would like to configure a
debug build just as './configure --enable-debug=full' did before.

For this, you can conveniently create a new out-of-source build directory:

$ mkdir Debug
$ cd Debug
$ cmake -D CMAKE_BUILD_TYPE=Debugfull ..

Instead of the last command, you could also call CMake without command
line arguments and use the GUI to switch the build type.

$ cmake ..
$ ccmake .
    and change the option CMAKE_BUILD_TYPE to 'Debugfull'.  Selecting
    an option and pressing 'h' will show you its allowed values.

In any case, your choices are safely stored in the file CMakeCache.txt
which will never be completely overwritten.
If you want to reset your changes, you will have to delete this file.

Quick-start 3: More options

    This option tells cmake where to install KMyMoney to.
    During development, this should be a directory in your development
    environment, such that you can debug the program and test the
    The default is ${KDE3PREFIX}, which is usually "/opt/kde3/".

    Choose the type of build. Possible values are:
      'Release' 'RelWithDebInfo' 'Debug' 'Debugfull' 'Profile'
    The default value is: 'RelWithDebInfo'

    To also build the unit tests.

Quick-start 4: Makefile targets

After cmake has finished, you have a set of ordinary Makefiles in your
directory.  You can type

$ make help
    to see all available make targets in the current directory.

$ make
    to reconfigure the Makefiles and build the project.

$ make install
    to install KMyMoney to the directory CMAKE_INSTALL_PREFIX.

$ make DESTDIR=/tmp install
    to install KMyMoney to the directory /tmp/CMAKE_INSTALL_PREFIX.

$ make uninstall
    to uninstall a previous installation.

$ make package
    to create a binary tarball.

$ make package_source
    to create a source tarball.
    (Warning: must have a clean source directory and build out-of-source)

$ make kmymoney-unstable_rpm
$ make kmymoney_rpm
    to create binary rpm packages.
    (they only differ in the package name)

$ make kmymoney_srpm
$ make kmymoney-unstable_srpm
    to create source rpm packages.

$ make messages
    to extract and merge translations.
    (Warning: This will change the source files)

$ make developer-doc
    to create the developer handbook. Will also create HTML-version.

$ make test
    to process all unit tests.
You can’t perform that action at this time.