mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-26 11:52:52 +00:00
30 lines
909 B
CMake
30 lines
909 B
CMake
|
|
include(CheckStructHasMember)
|
|
|
|
check_include_files(sys/sockio.h HAVE_SYS_SOCKIO_H) # nic.cpp
|
|
check_symbol_exists(getnameinfo "sys/socket.h;netdb.h" HAVE_GETNAMEINFO) # nic.cpp
|
|
check_struct_has_member("struct sockaddr" "sa_len" "sys/socket.h" HAVE_STRUCT_SOCKADDR_SA_LEN) # nic.cpp
|
|
check_function_exists(getifaddrs HAVE_GETIFADDRS) # nic.cpp
|
|
check_struct_has_member("struct ifreq" "ifr_ifru.ifru_hwaddr" "net/if.h" HAVE_STRUCT_IFREQ_IFR_IFRU_IFRU_HWADDR) # nic.cpp
|
|
|
|
configure_file (config-nic.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-nic.h )
|
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
set(kcm_nic_PART_SRCS nic.cpp )
|
|
|
|
|
|
kde4_add_plugin(kcm_nic ${kcm_nic_PART_SRCS})
|
|
|
|
|
|
target_link_libraries(kcm_nic ${KDE4_KIO_LIBS} )
|
|
|
|
install(TARGETS kcm_nic DESTINATION ${KDE4_PLUGIN_INSTALL_DIR} )
|
|
|
|
|
|
########### install files ###############
|
|
|
|
install( FILES nic.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR} )
|
|
|