Warning, /plasma/libksysguard/processcore/plugins/network/helper/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 
0002 set(ksgrd_network_helper_SRCS
0003     main.cpp
0004     Capture.cpp Capture.h
0005     Packet.cpp Packet.h
0006     ConnectionMapping.cpp ConnectionMapping.h
0007     Accumulator.cpp Accumulator.h
0008 )
0009 
0010 add_executable(ksgrd_network_helper ${ksgrd_network_helper_SRCS})
0011 target_include_directories(ksgrd_network_helper PUBLIC ${PCAP_INCLUDE_DIR} ${NL_INCLUDE_DIRS})
0012 target_link_libraries(ksgrd_network_helper ${PCAP_LIBRARY} ${NL_LIBRARIES})
0013 kde_target_enable_exceptions(ksgrd_network_helper PUBLIC)
0014 set_target_properties(ksgrd_network_helper PROPERTIES CXX_STANDARD 17 CXX_STANDARD_REQUIRED TRUE)
0015 
0016 # Why can't CMake fix this itself?'
0017 target_link_libraries(ksgrd_network_helper pthread)
0018 
0019 install(TARGETS ksgrd_network_helper DESTINATION ${KDE_INSTALL_LIBEXECDIR}/ksysguard)
0020 
0021 if (Libcap_FOUND)
0022     install(
0023         CODE "execute_process(
0024         COMMAND ${SETCAP_EXECUTABLE}
0025         CAP_NET_RAW=+ep
0026         \$ENV{DESTDIR}${KDE_INSTALL_FULL_LIBEXECDIR}/ksysguard/ksgrd_network_helper)"
0027     )
0028 endif()