diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/kcm/CMakeLists.txt | 39 | ||||
-rw-r--r-- | src/knemod/CMakeLists.txt | 60 | ||||
-rw-r--r-- | src/knemod/backends/CMakeLists.txt | 28 | ||||
-rw-r--r-- | src/knemod/backends/nettoolsbackend.cpp | 1 | ||||
-rw-r--r-- | src/knemod/interfacestatistics.cpp | 2 | ||||
-rw-r--r-- | src/knemod/pics/CMakeLists.txt | 1 |
7 files changed, 132 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..825e5b4 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,2 @@ +add_subdirectory( kcm ) +add_subdirectory( knemod ) diff --git a/src/kcm/CMakeLists.txt b/src/kcm/CMakeLists.txt new file mode 100644 index 0000000..9a039be --- /dev/null +++ b/src/kcm/CMakeLists.txt @@ -0,0 +1,39 @@ +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${CMAKE_SOURCE_DIR}/src/knemod/backends + ${CMAKE_SOURCE_DIR}/src/common +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### kcm_knemo (kpart) + +tde_add_kpart( kcm_knemo AUTOMOC + + SOURCES + configdlg.ui + configdialog.cpp + + LINK + tdecore-shared + tdeui-shared + tdeio-shared + + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data + +install( + FILES kcm_knemo.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) diff --git a/src/knemod/CMakeLists.txt b/src/knemod/CMakeLists.txt new file mode 100644 index 0000000..648d40c --- /dev/null +++ b/src/knemod/CMakeLists.txt @@ -0,0 +1,60 @@ +add_subdirectory( pics ) +add_subdirectory( backends ) + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${CMAKE_SOURCE_DIR}/src/knemod/backends + ${CMAKE_SOURCE_DIR}/src/common +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### kded_knemod (kpart) + +tde_add_kpart( kded_knemod AUTOMOC + + SOURCES + interfacestatusdlg.ui + interfacestatisticsdlg.ui + knemodaemon.skel + knemodaemon.cpp + interface.cpp + interfaceicon.cpp + interfacetray.cpp + interfacemonitor.cpp + interfacestatusdialog.cpp + interfacetooltip.cpp + signalplotter.cpp + interfacestatistics.cpp + interfacestatisticsdialog.cpp + LINK + tdecore-shared + tdeio-shared + tdeui-shared + tdeutils-shared + tdeinit_kded + knemo_backends-static + + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data + +install( + FILES eventsrc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +install( + FILES knemod.desktop + DESTINATION ${SERVICES_INSTALL_DIR}/kded +) diff --git a/src/knemod/backends/CMakeLists.txt b/src/knemod/backends/CMakeLists.txt new file mode 100644 index 0000000..3e9ef71 --- /dev/null +++ b/src/knemod/backends/CMakeLists.txt @@ -0,0 +1,28 @@ +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${CMAKE_SOURCE_DIR}/src/common + ${CMAKE_SOURCE_DIR}/src/knemod +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### knemo_backends (static) + +tde_add_library( knemo_backends STATIC_PIC AUTOMOC + + SOURCES + backendbase.cpp + nettoolsbackend.cpp + sysbackend.cpp + LINK + tdeio-shared + ${IW_LIBRARIES} +) diff --git a/src/knemod/backends/nettoolsbackend.cpp b/src/knemod/backends/nettoolsbackend.cpp index 014e299..1437e47 100644 --- a/src/knemod/backends/nettoolsbackend.cpp +++ b/src/knemod/backends/nettoolsbackend.cpp @@ -496,3 +496,4 @@ void NetToolsBackend::parseRouteOutput() } } } +#include "nettoolsbackend.moc" diff --git a/src/knemod/interfacestatistics.cpp b/src/knemod/interfacestatistics.cpp index 1d0c5df..11212f3 100644 --- a/src/knemod/interfacestatistics.cpp +++ b/src/knemod/interfacestatistics.cpp @@ -381,4 +381,4 @@ void InterfaceStatistics::updateCurrentYear() mYearStatistics.append( mCurrentYear ); // TODO: insert at correct position emit yearStatisticsChanged(); } - +#include "interfacestatistics.moc" diff --git a/src/knemod/pics/CMakeLists.txt b/src/knemod/pics/CMakeLists.txt new file mode 100644 index 0000000..63f765b --- /dev/null +++ b/src/knemod/pics/CMakeLists.txt @@ -0,0 +1 @@ +tde_install_icons( ) |