Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KInfoCenter
Commits
d37d11a3
Commit
d37d11a3
authored
Jul 20, 2020
by
Pino Toscano
Browse files
cmake: require libusb for usbview module
Look for libusb, using it for the usbview module.
parent
4ce9a0da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Modules/CMakeLists.txt
View file @
d37d11a3
add_subdirectory
(
about-distro
)
add_subdirectory
(
usbview
)
add_subdirectory
(
memory
)
add_subdirectory
(
devinfo
)
add_subdirectory
(
info
)
...
...
@@ -67,6 +66,17 @@ if(RAW1394_FOUND)
add_subdirectory
(
view1394
)
endif
()
find_package
(
USB1 MODULE
)
set_package_properties
(
USB1 PROPERTIES DESCRIPTION
"library that provides generic access to USB devicess"
URL
"https://libusb.info/"
TYPE OPTIONAL
PURPOSE
"View USB devices in kinfocenter"
)
if
(
USB1_FOUND
)
add_subdirectory
(
usbview
)
endif
()
if
(
CMAKE_SYSTEM_NAME MATCHES Linux
)
add_subdirectory
(
energy
)
add_subdirectory
(
fileindexermonitor
)
...
...
Modules/usbview/CMakeLists.txt
View file @
d37d11a3
...
...
@@ -9,7 +9,7 @@ set(kcm_usb_PART_SRCS kcmusb.cpp usbdevices.cpp usbdb.cpp )
add_library
(
kcm_usb MODULE
${
kcm_usb_PART_SRCS
}
)
target_link_libraries
(
kcm_usb KF5::KCMUtils KF5::I18n
)
target_link_libraries
(
kcm_usb KF5::KCMUtils KF5::I18n
Libusb-1.0
)
install
(
TARGETS kcm_usb DESTINATION
${
KDE_INSTALL_PLUGINDIR
}
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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