Warning, /frameworks/purpose/src/plugins/phabricator/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 find_program(ARCANIST arc)
0002 if(NOT ARCANIST)
0003 message(WARNING "The phabricator plugin depends on having the 'arc' script available in the PATH")
0004 else()
0005 message(STATUS "The 'arc' script was found as ${ARCANIST}")
0006 endif()
0007
0008 add_definitions(-DTRANSLATION_DOMAIN=\"purpose6_phabricator\")
0009
0010 add_subdirectory(icons)
0011
0012 set(PhabricatorHelper_SRCS phabricatorjobs.cpp)
0013 ecm_qt_declare_logging_category(PhabricatorHelper_SRCS
0014 HEADER debug.h
0015 IDENTIFIER PLUGIN_PHABRICATOR
0016 CATEGORY_NAME kf.purpose.plugins.phabricator
0017 OLD_CATEGORY_NAMES kdevplatform.plugins.phabricator
0018 DEFAULT_SEVERITY Debug
0019 DESCRIPTION "purpose (phabricator plugin)"
0020 EXPORT PURPOSE
0021 )
0022
0023 add_library(PhabricatorHelpers STATIC ${PhabricatorHelper_SRCS})
0024 set_target_properties(PhabricatorHelpers PROPERTIES POSITION_INDEPENDENT_CODE ON)
0025 target_link_libraries(PhabricatorHelpers KF6::CoreAddons KF6::I18n)
0026
0027 add_executable(testphabricator tests/testphabricator.cpp)
0028 ecm_mark_nongui_executable(testphabricator)
0029 target_link_libraries(testphabricator PhabricatorHelpers Qt6::Core)
0030
0031 add_share_plugin(phabricatorplugin phabricatorplugin.cpp)
0032 target_link_libraries(phabricatorplugin Qt6::Widgets PhabricatorHelpers)
0033
0034 add_library(phabricatorquickplugin quick/phabricatorquickplugin.cpp quick/difflistmodel.cpp quick/phabricatorrc.cpp)
0035 target_link_libraries(phabricatorquickplugin Qt6::Qml Qt6::Gui PhabricatorHelpers)
0036
0037 install(TARGETS phabricatorquickplugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/purpose/phabricator)
0038 install(FILES quick/qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/purpose/phabricator)