2 include(CheckStructMember)
4 check_include_files(sys/sockio.h HAVE_SYS_SOCKIO_H) # nic.cpp
5 check_symbol_exists(getnameinfo "sys/socket.h;netdb.h" HAVE_GETNAMEINFO) # nic.cpp
6 check_struct_member("struct sockaddr" "sa_len" "sys/socket.h" HAVE_STRUCT_SOCKADDR_SA_LEN) # nic.cpp
7 check_function_exists(getifaddrs HAVE_GETIFADDRS) # nic.cpp
9 configure_file (config-nic.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-nic.h )
13 ########### next target ###############
15 set(kcm_nic_PART_SRCS nic.cpp )
18 kde4_add_plugin(kcm_nic ${kcm_nic_PART_SRCS})
21 target_link_libraries(kcm_nic ${KDE4_KIO_LIBS} )
23 install(TARGETS kcm_nic DESTINATION ${PLUGIN_INSTALL_DIR} )
26 ########### install files ###############
28 install( FILES nic.desktop DESTINATION ${SERVICES_INSTALL_DIR} )