Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
#include <KoConfig.h>
/* This variable contains the path to the root of the source directory */
#define KRITA_SOURCE_DIR "${CMAKE_SOURCE_DIR}"
/* This variable contains the path to the data install dir */
#define KRITA_RESOURCE_DIRS_FOR_TESTS "${CMAKE_INSTALL_PREFIX}/${KDE_INSTALL_DATADIR};${CMAKE_SOURCE_DIR}/krita/data"
/* This variable contains the path to the plugins install dir */
#define KRITA_PLUGINS_DIR_FOR_TESTS "${CMAKE_INSTALL_PREFIX}/${KRITA_PLUGIN_INSTALL_DIR}"