mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00

lots of references have to be kept and passed around because once the device is removed Solid::Device is just an UDI - anything else is obtained dynamically and will return invalid results (even casts will not work) what the mountpoint cleaner does? when a device is removed without being unmounted (e.g. USB storage) the program will call `unmount` essentially making sure the device node and the mount point can be used when the device is inserted again, no other project does that as far as I am aware Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
57 lines
1.2 KiB
CMake
57 lines
1.2 KiB
CMake
add_subdirectory(actions)
|
|
|
|
########### next target ###############
|
|
|
|
set(soliduiserver_helper_srcs
|
|
soliduiserver_helper.cpp
|
|
)
|
|
|
|
add_executable(soliduiserver_helper ${soliduiserver_helper_srcs})
|
|
target_link_libraries(soliduiserver_helper PUBLIC KDE4::kdecore)
|
|
|
|
########### next target ###############
|
|
|
|
set(kded_soliduiserver_SRCS
|
|
soliduiserver.cpp
|
|
soliduidialog.cpp
|
|
)
|
|
|
|
kde4_add_plugin(kded_soliduiserver ${kded_soliduiserver_SRCS})
|
|
target_link_libraries(kded_soliduiserver
|
|
KDE4::solid
|
|
KDE4::kio
|
|
)
|
|
|
|
set(solid_unmount_device_SRCS
|
|
solid_unmount_device.cpp
|
|
)
|
|
|
|
add_executable(solid_unmount_device ${solid_unmount_device_SRCS})
|
|
target_link_libraries(solid_unmount_device
|
|
KDE4::kdecore
|
|
KDE4::kdeui
|
|
)
|
|
|
|
########### install files ###############
|
|
|
|
install(
|
|
TARGETS kded_soliduiserver
|
|
DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}
|
|
)
|
|
|
|
install(
|
|
FILES soliduiserver.desktop
|
|
DESTINATION ${KDE4_SERVICES_INSTALL_DIR}/kded
|
|
)
|
|
|
|
install(
|
|
FILES soliduiserver.notifyrc
|
|
DESTINATION ${KDE4_CONFIG_INSTALL_DIR}/notifications
|
|
)
|
|
|
|
install(
|
|
TARGETS soliduiserver_helper solid_unmount_device
|
|
DESTINATION ${KDE4_LIBEXEC_INSTALL_DIR}
|
|
)
|
|
|
|
kde4_install_auth_helper_files(soliduiserver_helper org.kde.soliduiserver.mountunmounthelper)
|