cosmic-term: 1.0.0-alpha.3 -> 1.0.0-alpha.5.1 (#374031)
[NixPkgs.git] / pkgs / by-name / ws / wsysmon / fix-deps-and-add-install.patch
blobbf295b8483ff6aeefba8ce89a0c2f760855cc938
1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index 31e8048..b21f6f4 100644
3 --- a/CMakeLists.txt
4 +++ b/CMakeLists.txt
5 @@ -5,12 +5,7 @@ set(CMAKE_CXX_STANDARD 17)
6 find_package(PkgConfig)
7 include(FetchContent)
9 -FetchContent_Declare(
10 - spdlog
11 - GIT_REPOSITORY https://github.com/gabime/spdlog.git
12 - GIT_TAG v1.10.0
14 -FetchContent_MakeAvailable(spdlog)
15 +find_package(spdlog REQUIRED)
17 pkg_check_modules(GTKMM REQUIRED gtkmm-3.0)
18 find_package(X11 REQUIRED)
19 @@ -19,4 +14,10 @@ link_directories(${GTKMM_LIBRARY_DIRS})
20 include_directories(${GTKMM_INCLUDE_DIRS} ${X11_INCLUDE_DIR})
22 add_executable(WSysMon src/main.cpp src/ui/MainWindow.cpp src/ui/widgets/GraphWidget.cpp src/ui/widgets/PerformanceButton.cpp src/ui/views/ProcessesView.cpp src/ui/views/PerformanceView.cpp src/ui/views/performance/PerformanceCPUView.cpp src/ui/views/performance/PerformanceGPUView.cpp src/ui/views/performance/PerformanceNetworkView.cpp src/ui/views/performance/PerformanceRAMView.cpp src/utils/DispatcherThread.cpp src/utils/UnitConverter.cpp src/utils/X11Utils.cpp src/api/process/ProcessManager.cpp src/api/process/ProcessNode.cpp src/api/linux/ProcessesApi.cpp src/api/linux/GPUApi.cpp src/api/linux/NetworkApi.cpp src/api/linux/SystemInfoApi.cpp src/api/DiskApi.h src/api/linux/DiskApi.cpp src/ui/views/performance/PerformanceDiskView.cpp src/ui/views/performance/PerformanceDiskView.h src/api/linux/gpu/nvml.h src/api/linux/gpu/nvml_hook_funcs.inl src/api/linux/gpu/NvGpuApi.cpp src/api/linux/gpu/NvGpuApi.h src/api/HwMonApi.h src/api/linux/HwMonApi.cpp)
23 -target_link_libraries(WSysMon PRIVATE spdlog::spdlog pthread procps ${CMAKE_DL_LIBS} ${GTKMM_LIBRARIES} ${X11_LIBRARIES})
24 +target_link_libraries(WSysMon PRIVATE spdlog::spdlog pthread ${CMAKE_DL_LIBS} ${GTKMM_LIBRARIES} ${X11_LIBRARIES})
26 +install(
27 + TARGETS
28 + WSysMon
29 + RUNTIME DESTINATION bin
31 diff --git a/src/api/process/ProcessManager.h b/src/api/process/ProcessManager.h
32 index 44989f4..2e98963 100644
33 --- a/src/api/process/ProcessManager.h
34 +++ b/src/api/process/ProcessManager.h
35 @@ -5,8 +5,6 @@
36 #include <map>
37 #include <vector>
39 -#include <proc/readproc.h>
41 #include "ProcessNode.h"
42 #include "../ProcessesApi.h"