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++
set(kritaplugin_LIB_SRCS
KoPluginLoader.cpp
KoJsonTrader.cpp
KisMimeDatabase.cpp
)
# help plugin trader find installed plugins when run from uninstalled tests
if (BUILD_TESTING)
add_definitions(-DCMAKE_INSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}")
endif()
kis_add_library(kritaplugin SHARED ${kritaplugin_LIB_SRCS})
generate_export_header(kritaplugin BASE_NAME kritaplugin)
target_link_libraries(kritaplugin
PUBLIC
Qt${QT_MAJOR_VERSION}::Core
PRIVATE
kritaglobal
KF${KF_MAJOR}::ConfigCore
KF${KF_MAJOR}::CoreAddons
KF${KF_MAJOR}::I18n
)
set_target_properties(kritaplugin PROPERTIES
VERSION ${GENERIC_KRITA_LIB_VERSION} SOVERSION ${GENERIC_KRITA_LIB_SOVERSION}
)
install(TARGETS kritaplugin ${INSTALL_TARGETS_DEFAULT_ARGS} )
add_subdirectory(tests)