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

0001 
0002 # Required packages from KF5
0003 
0004 find_package (KF5Service    ${KF5_DEP_VERSION} CONFIG REQUIRED)
0005 find_package (KF5I18n       ${KF5_DEP_VERSION} CONFIG REQUIRED)
0006 find_package (KF5Baloo      ${KF5_DEP_VERSION} CONFIG REQUIRED)
0007 
0008 
0009 # Some vars needed later
0010 
0011 set (BLADE_RUNNER_PLUGIN_VERSION 1)
0012 set (BLADE_RUNNER_PLUGIN_DIR "org.kde.plasma.blade/runners/${BLADE_RUNNER_PLUGIN_VERSION}")
0013 
0014 configure_file (blade-features.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/blade-features.h)
0015 include_directories (${CMAKE_CURRENT_BUILD_DIR})
0016 
0017 include_directories (${CMAKE_CURRENT_SOURCE_DIR})
0018 
0019 set (
0020     BLADE_COMMON_SRCS
0021 
0022     transport/Serialization.cpp
0023 
0024     ui/UiBackend.cpp
0025 
0026     runners/AbstractRunner.cpp
0027     runners/plugins/services/ServicesRunner.cpp
0028 
0029     ${VOY_SOURCES}
0030 
0031     main.cpp
0032     )
0033 
0034 if (NOT EXISTS "${CAPNP_EXECUTABLE}")
0035     # Workaround for some CMake problems with CapnProto
0036     set(CAPNP_EXECUTABLE "/usr/bin/capnp")
0037     set(CAPNPC_CXX_EXECUTABLE "/usr/bin/capnpc-c++")
0038     set(CAPNP_INCLUDE_DIRECTORY "/usr/include")
0039     set(CAPNP_INCLUDE_DIRS "/usr/include")
0040 endif()
0041 
0042 capnp_generate_cpp (
0043     BLADE_CAPNP_SRCS BLADE_CAPNP_HEADERS
0044 
0045     transport/protocol/ping_message.capnp
0046     transport/protocol/query_message.capnp
0047     transport/protocol/error_message.capnp
0048 
0049     transport/protocol/controller_message.capnp
0050     )
0051 
0052 add_executable (
0053     bladed
0054     ${BLADE_COMMON_SRCS}
0055     ${BLADE_CAPNP_SRCS}
0056     )
0057 
0058 # TODO:
0059 # generate_export_header (blade_plugin)
0060 
0061 target_link_libraries (
0062     bladed
0063     Qt5::Core
0064     Qt5::Quick
0065 
0066     KF5::Service
0067     KF5::I18n
0068 
0069     ${capnp_LIBRARIES}
0070 
0071     ${Boost_SYSTEM_LIBRARY}
0072     ${Boost_FILESYSTEM_LIBRARY}
0073     ${Boost_REGEX_LIBRARY}
0074     ${Boost_THREAD_LIBRARY}
0075     ${ZMQ_LIBRARIES}
0076     -pthread
0077     )