Warning, /plasma/libksysguard/sensors/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 set(KSYSGUARD_SENSORS_SOVERSION 2)
0002
0003 add_subdirectory(declarative)
0004
0005 add_definitions(-DTRANSLATION_DOMAIN=\"ksysguard_sensors\")
0006
0007 set(sensors_LIB_SRCS
0008 Sensor.cpp
0009 SensorDataModel.cpp
0010 SensorTreeModel.cpp
0011 SensorGroup.cpp
0012 SensorQuery.cpp
0013 SensorDaemonInterface.cpp
0014 SensorUnitModel.cpp
0015 )
0016
0017 set(sensors_LIB_HEADERS
0018 Sensor.h
0019 SensorDataModel.h
0020 SensorTreeModel.h
0021 SensorQuery.h
0022 SensorUnitModel.h
0023 SensorInfo_p.h
0024 )
0025
0026 ecm_qt_declare_logging_category(sensors_LIB_SRCS
0027 HEADER sensors_logging.h
0028 IDENTIFIER LIBKSYSGUARD_SENSORS
0029 CATEGORY_NAME org.kde.libksysguard.sensors
0030 DESCRIPTION "libksysguard (sensors)" EXPORT LIBKSYSGUARD
0031 )
0032
0033 set_source_files_properties(org.kde.KSysGuardDaemon.xml PROPERTIES INCLUDE ../systemstats/SensorInfo.h)
0034 qt_add_dbus_interface(sensors_LIB_SRCS org.kde.KSysGuardDaemon.xml ksysguarddaemon)
0035
0036 add_library(Sensors ${sensors_LIB_SRCS})
0037 add_library(KSysGuard::Sensors ALIAS Sensors)
0038
0039 target_include_directories(Sensors
0040 PUBLIC
0041 "$<BUILD_INTERFACE:${libksysguard_SOURCE_DIR}>"
0042 "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR}/ksysguard/>"
0043 )
0044
0045 generate_export_header(Sensors)
0046
0047 target_link_libraries(Sensors
0048 PUBLIC
0049 Qt::Qml
0050 KSysGuard::Formatter
0051 PRIVATE
0052 Qt::Core
0053 Qt::DBus
0054 KF6::I18n
0055 KSysGuard::SystemStats
0056 )
0057
0058 set_target_properties(Sensors PROPERTIES
0059 LIBRARY_OUTPUT_NAME KSysGuardSensors
0060 VERSION ${KSYSGUARD_VERSION}
0061 SOVERSION ${KSYSGUARD_SENSORS_SOVERSION}
0062 )
0063
0064 install(TARGETS Sensors EXPORT libksysguardLibraryTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0065 install(FILES
0066 ${sensors_LIB_HEADERS}
0067 ${CMAKE_CURRENT_BINARY_DIR}/sensors_export.h
0068 DESTINATION ${KDE_INSTALL_INCLUDEDIR}/ksysguard/sensors
0069 COMPONENT Devel
0070 )