Warning, /sdk/kommit/dolphinplugins/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 find_package(KF${KF_MAJOR_VERSION} ${KF${KF_MAJOR_VERSION}_MIN_VERSION} REQUIRED COMPONENTS KIO)
0002 
0003 set(GIT_EXTRA_SOURCE
0004 )
0005 
0006 ecm_qt_declare_logging_category(GIT_EXTRA_SOURCE HEADER kommit_dolphinplugins_debug.h
0007     IDENTIFIER KOMMIT_DOLPHIN_PLUGINS_LOG CATEGORY_NAME org.kde.kommit.dolphinplugins DESCRIPTION "kommit dolphin plugins" EXPORT kommit)
0008 
0009 #--- VCS Plugin ---
0010 add_definitions(-DTRANSLATION_DOMAIN=\"fileviewgitplugin\")
0011 
0012 kcoreaddons_add_plugin(kommitdolphinplugin INSTALL_NAMESPACE "dolphin/vcs")
0013 
0014 target_sources(kommitdolphinplugin PRIVATE
0015     dolphinplugin.h dolphinplugin.cpp
0016     statuscache.h statuscache.cpp
0017 )
0018 
0019 target_link_libraries(kommitdolphinplugin PRIVATE
0020     Qt::Core
0021     Qt::Widgets
0022     KF${KF_MAJOR_VERSION}::I18n
0023     KF${QT_MAJOR_VERSION}::KIOCore
0024     DolphinVcs
0025     PkgConfig::LIBGIT2
0026 )
0027 
0028 if (QT_MAJOR_VERSION STREQUAL "6")
0029     target_link_libraries(kommitdolphinplugin PRIVATE
0030         Qt::Core5Compat
0031     )
0032 endif()
0033 
0034 #install(FILES fileviewgitpluginsettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
0035 
0036 if (BUILD_TESTING)
0037     add_subdirectory(autotests)
0038 endif()