Warning, /plasma/kinfocenter/Modules/nics/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # KI18N Translation Domain for this library
0002 add_definitions(-DTRANSLATION_DOMAIN=\"kcmnic\")
0003
0004 include(CheckStructHasMember)
0005
0006 # sa_len is only available on freebsd, not linux.
0007 check_struct_has_member("struct sockaddr" "sa_len" "sys/socket.h" HAVE_STRUCT_SOCKADDR_SA_LEN) # networkmodel.cpp
0008
0009 configure_file(config-nic.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-nic.h)
0010
0011 kinfocenter_add_kcm(kcm_nic nic.cpp networkmodel.cpp)
0012
0013 target_link_libraries(kcm_nic PRIVATE
0014 KF6::I18n
0015 KF6::CoreAddons
0016 KF6::KCMUtils
0017 KF6::KCMUtilsQuick)
0018
0019 target_compile_features(kcm_nic PUBLIC cxx_std_14)