Commit 1dad4a88 authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Update CMakeLists to include new systemstats library

It has been moved from the ksysguard repo to here, but we still need to
ensure it builds correctly.
parent feec247e
......@@ -113,6 +113,7 @@ add_subdirectory( sensors )
add_subdirectory( faces )
add_subdirectory( signalplotter )
add_subdirectory( ksgrd )
add_subdirectory( systemstats )
if(BUILD_TESTING)
add_subdirectory( autotests )
......
set(ksgrdbackend_LIB_SRCS
set(SystemStats_SOVERSION 1)
set(systemstats_SRCS
AggregateSensor.cpp
SensorObject.cpp
SensorContainer.cpp
SensorPlugin.cpp
SensorProperty.cpp
SysFsSensor.cpp
)
set(systemstats_HDRS
)
add_library(ksgrdbackend ${ksgrdbackend_LIB_SRCS})
add_library(KSysGuard::StatsBackend ALIAS ksgrdbackend)
add_library(SystemStats ${systemstats_SRCS})
add_library(KSysGuard::SystemStats ALIAS SystemStats)
target_link_libraries(ksgrdbackend PUBLIC Qt::Core Qt::DBus KSysGuard::Formatter)
target_link_libraries(SystemStats PUBLIC Qt::Core Qt::DBus KSysGuard::Formatter)
set_target_properties(ksgrdbackend PROPERTIES
EXPORT_NAME SysGuardBackend
generate_export_header(SystemStats)
set_target_properties(SystemStats PROPERTIES
LIBRARY_OUTPUT_NAME KSysGuardSystemStats
VERSION ${KSYSGUARD_VERSION_STRING}
SOVERSION ${SystemStats_SOVERSION}
)
install(TARGETS ksgrdbackend EXPORT libKSysGuardbackendTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
install(TARGETS SystemStats EXPORT libksysguardLibraryTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
# Headers are currently not installed as we don't offer compatability yet
install(FILES
${systemstats_HDRS}
${CMAKE_CURRENT_BINARY_DIR}/systemstats_export.h
DESTINATION ${KDE_INSTALL_INCLUDEDIR}/ksysguard/systemstats
)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment