Changeset View
Changeset View
Standalone View
Standalone View
processcore/CMakeLists.txt
1 | add_definitions(-DTRANSLATION_DOMAIN=\"processcore\") | 1 | add_definitions(-DTRANSLATION_DOMAIN=\"processcore\") | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | ########### next target ############### | 3 | ########### next target ############### | ||
4 | 4 | | |||
5 | set(ksysguard_LIB_SRCS | 5 | set(ksysguard_LIB_SRCS | ||
6 | extended_process_list.cpp | ||||
7 | formatter.cpp | ||||
6 | processes.cpp | 8 | processes.cpp | ||
7 | process.cpp | 9 | process.cpp | ||
10 | process_attribute.cpp | ||||
8 | processes_local_p.cpp | 11 | processes_local_p.cpp | ||
9 | processes_remote_p.cpp | 12 | processes_remote_p.cpp | ||
10 | processes_base_p.cpp | 13 | processes_base_p.cpp | ||
11 | processes_atop_p.cpp | 14 | processes_atop_p.cpp | ||
12 | process_controller.cpp | 15 | process_controller.cpp | ||
16 | process_data_provider.cpp | ||||
17 | unit.cpp | ||||
13 | ) | 18 | ) | ||
14 | ecm_qt_declare_logging_category(ksysguard_LIB_SRCS HEADER processcore_debug.h IDENTIFIER LIBKSYSGUARD_PROCESSCORE CATEGORY_NAME org.kde.libksysguard.processcore) | 19 | ecm_qt_declare_logging_category(ksysguard_LIB_SRCS HEADER processcore_debug.h IDENTIFIER LIBKSYSGUARD_PROCESSCORE CATEGORY_NAME org.kde.libksysguard.processcore) | ||
15 | 20 | | |||
16 | | ||||
17 | add_library(processcore ${ksysguard_LIB_SRCS}) | 21 | add_library(processcore ${ksysguard_LIB_SRCS}) | ||
18 | add_library(KF5::ProcessCore ALIAS processcore) | 22 | add_library(KF5::ProcessCore ALIAS processcore) | ||
19 | 23 | | |||
20 | target_link_libraries(processcore | 24 | target_link_libraries(processcore | ||
21 | PUBLIC | 25 | PUBLIC | ||
22 | Qt5::Core | 26 | Qt5::Core | ||
23 | PRIVATE | 27 | PRIVATE | ||
24 | KF5::I18n | 28 | KF5::I18n | ||
25 | KF5::AuthCore | 29 | KF5::AuthCore | ||
30 | KF5::CoreAddons | ||||
26 | ${ZLIB_LIBRARIES} | 31 | ${ZLIB_LIBRARIES} | ||
27 | ) | 32 | ) | ||
28 | 33 | | |||
29 | if( ${CMAKE_SYSTEM_NAME} MATCHES "NetBSD" ) | 34 | if( ${CMAKE_SYSTEM_NAME} MATCHES "NetBSD" ) | ||
30 | message(STATUS "Adding kvm library on NetBSD") | 35 | message(STATUS "Adding kvm library on NetBSD") | ||
31 | target_link_libraries(processcore kvm) | 36 | target_link_libraries(processcore kvm) | ||
32 | endif() | 37 | endif() | ||
33 | 38 | | |||
34 | target_include_directories(processcore | 39 | target_include_directories(processcore | ||
35 | PUBLIC | 40 | PUBLIC | ||
36 | "$<BUILD_INTERFACE:${libksysguard_SOURCE_DIR}>" | 41 | "$<BUILD_INTERFACE:${libksysguard_SOURCE_DIR}>" | ||
37 | "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR}/ksysguard>" | 42 | "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR}/ksysguard>" | ||
38 | ) | 43 | ) | ||
39 | set_target_properties(processcore PROPERTIES VERSION ${KSYSGUARD_VERSION_STRING} SOVERSION ${KSYSGUARD_SOVERSION} EXPORT_NAME ProcessCore) | 44 | set_target_properties(processcore PROPERTIES VERSION ${KSYSGUARD_VERSION_STRING} SOVERSION ${KSYSGUARD_SOVERSION} EXPORT_NAME ProcessCore) | ||
40 | install(TARGETS processcore EXPORT libksysguardLibraryTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) | 45 | install(TARGETS processcore EXPORT libksysguardLibraryTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) | ||
41 | 46 | | |||
42 | ########### install files ############### | 47 | ########### install files ############### | ||
43 | 48 | | |||
44 | install( FILES | 49 | install( FILES | ||
45 | processes.h | 50 | processes.h | ||
46 | process.h | 51 | process.h | ||
47 | process_controller.h | 52 | process_controller.h | ||
53 | process_attribute.h | ||||
54 | process_data_provider.h | ||||
55 | formatter.h | ||||
56 | unit.h | ||||
48 | DESTINATION ${KDE_INSTALL_INCLUDEDIR}/ksysguard/processcore | 57 | DESTINATION ${KDE_INSTALL_INCLUDEDIR}/ksysguard/processcore | ||
49 | COMPONENT Devel | 58 | COMPONENT Devel | ||
50 | ) | 59 | ) | ||
51 | 60 | | |||
52 | #------ KAuth stuff | 61 | #------ KAuth stuff | ||
53 | 62 | | |||
54 | # Auth example helper | 63 | # Auth example helper | ||
55 | set(ksysguardprocesslist_helper_srcs | 64 | set(ksysguardprocesslist_helper_srcs | ||
Show All 14 Lines |