Warning, /plasma/ksystemstats/plugins/memory/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 if (CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") 0006 add_library(ksystemstats_plugin_memory MODULE memory.cpp backend.cpp) 0007 0008 if (CMAKE_SYSTEM_NAME STREQUAL "Linux") 0009 target_sources(ksystemstats_plugin_memory PRIVATE linuxbackend.cpp) 0010 elseif(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") 0011 target_sources(ksystemstats_plugin_memory PRIVATE freebsdbackend.cpp) 0012 target_link_libraries(ksystemstats_plugin_memory kvm) 0013 endif() 0014 0015 target_link_libraries(ksystemstats_plugin_memory Qt::Core KF5::CoreAddons KF5::I18n KSysGuard::SystemStats) 0016 0017 install(TARGETS ksystemstats_plugin_memory DESTINATION ${KSYSTEMSTATS_PLUGIN_INSTALL_DIR}) 0018 endif()