Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
libksysguard
Commits
3a73c687
Commit
3a73c687
authored
Jan 13, 2021
by
Timothée Ravier
Committed by
Arjen Hiemstra
Jan 14, 2021
Browse files
Add option to not build/install KAuth helper
parent
5bd6a1d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
3a73c687
...
...
@@ -91,6 +91,8 @@ configure_file(config-ksysguard.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-ksysg
option
(
BUILD_DESIGNERPLUGIN
"Build plugin for Qt Designer"
ON
)
add_feature_info
(
DESIGNERPLUGIN
${
BUILD_DESIGNERPLUGIN
}
"Build plugin for Qt Designer"
)
option
(
ENABLE_KAUTH_HELPER
"Build and install ksysguardprocesslist_helper KAuth helper"
ON
)
add_feature_info
(
KAUTH_HELPER
${
ENABLE_KAUTH_HELPER
}
"Build and install ksysguardprocesslist_helper KAuth helper"
)
add_definitions
(
-DQT_NO_URL_CAST_FROM_STRING
)
add_definitions
(
-DQT_USE_QSTRINGBUILDER
)
...
...
processcore/CMakeLists.txt
View file @
3a73c687
...
...
@@ -74,21 +74,22 @@ install( FILES
#------ KAuth stuff
# Auth example helper
set
(
ksysguardprocesslist_helper_srcs
helper.cpp
process.cpp
processes_local_p.cpp
processes_base_p.cpp
read_procsmaps_runnable.cpp
)
add_executable
(
ksysguardprocesslist_helper
${
ksysguardprocesslist_helper_srcs
}
)
target_link_libraries
(
ksysguardprocesslist_helper Qt5::Core KF5::AuthCore KF5::I18n
)
install
(
TARGETS ksysguardprocesslist_helper DESTINATION
${
KAUTH_HELPER_INSTALL_DIR
}
)
kauth_install_helper_files
(
ksysguardprocesslist_helper org.kde.ksysguard.processlisthelper root
)
kauth_install_actions
(
org.kde.ksysguard.processlisthelper actions.actions
)
set_target_properties
(
ksysguardprocesslist_helper PROPERTIES COMPILE_FLAGS
"-Wall -ggdb"
)
if
(
ENABLE_KAUTH_HELPER
)
# Auth example helper
set
(
ksysguardprocesslist_helper_srcs
helper.cpp
process.cpp
processes_local_p.cpp
processes_base_p.cpp
read_procsmaps_runnable.cpp
)
add_executable
(
ksysguardprocesslist_helper
${
ksysguardprocesslist_helper_srcs
}
)
target_link_libraries
(
ksysguardprocesslist_helper Qt5::Core KF5::AuthCore KF5::I18n
)
install
(
TARGETS ksysguardprocesslist_helper DESTINATION
${
KAUTH_HELPER_INSTALL_DIR
}
)
kauth_install_helper_files
(
ksysguardprocesslist_helper org.kde.ksysguard.processlisthelper root
)
kauth_install_actions
(
org.kde.ksysguard.processlisthelper actions.actions
)
set_target_properties
(
ksysguardprocesslist_helper PROPERTIES COMPILE_FLAGS
"-Wall -ggdb"
)
endif
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment