Warning, /plasma/lancelot/src/blade/runners/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # add_definitions("-DHAVE_SHARED_PTR_STD -DHAVE_CXX0X_UNORDERED")
0002 
0003 find_package (KF5Service    ${KF5_DEP_VERSION} CONFIG REQUIRED)
0004 find_package (KF5I18n       ${KF5_DEP_VERSION} CONFIG REQUIRED)
0005 find_package (KF5Baloo      ${KF5_DEP_VERSION} CONFIG REQUIRED)
0006 
0007 set (CMAKE_INCLUDE_CURRENT_DIR ON)
0008 
0009 option (BLADE_RECOLL_SUPPORT "Should the recoll runner be built? You also need to set RECOLL_LIB_DIR and RECOLL_SOURCE_DIR" OFF)
0010 
0011 # Some vars needed later
0012 
0013 set (BLADE_PLUGIN_VERSION 1)
0014 set (BLADE_PLUGIN_DIR "org.kde.plasma.blade/${BLADE_PLUGIN_VERSION}")
0015 
0016 configure_file (blade-features.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/blade-features.h)
0017 
0018 # Plugin library and plugins
0019 
0020 set (
0021    BladePlugin_SRCS
0022    AbstractRunner.cpp
0023    Result.cpp
0024    )
0025 
0026 add_library (
0027    blade_plugin SHARED
0028    ${BladePlugin_SRCS}
0029    )
0030 
0031 generate_export_header (blade_plugin)
0032 
0033 target_link_libraries (
0034    blade_plugin
0035    PUBLIC
0036    Qt5::Core
0037    KF5::CoreAddons
0038    )
0039 
0040 add_subdirectory (runners)
0041 
0042 
0043 
0044 # GUI application
0045 
0046 set (
0047    Blade_SRCS
0048 
0049    main.cpp
0050 
0051    Result.cpp
0052    ResultModel.cpp
0053    AbstractRunner.cpp
0054 
0055    messages/PingMessage.cpp
0056    messages/PongMessage.cpp
0057    messages/QueryMessage.cpp
0058    messages/ResultMessage.cpp
0059 
0060    agents/Replicant.cpp
0061    agents/Collector.cpp
0062    )
0063 
0064 qt5_add_resources(
0065    Blade_SRCS
0066    ui/main.qrc
0067    )
0068 
0069 add_executable (
0070    blade
0071    ${Blade_SRCS}
0072    )
0073 
0074 target_link_libraries (
0075    blade
0076 
0077    VoyExperimental
0078 
0079    Qt5::Sql
0080    Qt5::Quick
0081    Qt5::Qml
0082    Qt5::Sql
0083    Qt5::Widgets
0084 
0085    KF5::DNSSD
0086    KF5::ConfigCore
0087    KF5::CoreAddons
0088    KF5::Service
0089    KF5::I18n
0090 
0091    blade_plugin
0092    )
0093 
0094 
0095 # install
0096 
0097 install (FILES
0098    blade.desktop
0099    DESTINATION ${KDE_INSTALL_KSERVICES5DIR}
0100    )
0101 
0102 install (TARGETS
0103    blade blade_plugin ${KF5_INSTALL_TARGETS_DEFAULT_ARGS}
0104    )
0105 
0106 install (FILES
0107    blade_plugin.desktop
0108    DESTINATION ${KDE_INSTALL_KSERVICETYPES5DIR}
0109    )