Warning, /plasma/ksystemstats/plugins/cpu/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-License-Identifier: BSD-2-Clause
0002 # SPDX-FileCopyrightText: 2020 David Redondo <kde@david-redondo.de>
0003 # SPDX-FileCopyrightText: 2021 Arjen Hiemstra <ahiemstra@heimr.nl>
0004 
0005 add_library(ksystemstats_plugin_cpu MODULE  cpu.cpp cpuplugin.cpp loadaverages.cpp usagecomputer.cpp)
0006 if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
0007     target_sources(ksystemstats_plugin_cpu PRIVATE linuxcpu.cpp linuxcpuplugin.cpp)
0008 elseif(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
0009     target_sources(ksystemstats_plugin_cpu PRIVATE freebsdcpuplugin.cpp)
0010 endif()
0011 
0012 target_link_libraries(ksystemstats_plugin_cpu Qt::Core KF5::CoreAddons KF5::I18n KSysGuard::SystemStats)
0013 
0014 install(TARGETS ksystemstats_plugin_cpu DESTINATION ${KSYSTEMSTATS_PLUGIN_INSTALL_DIR})