mirror of
https://github.com/KDE/krfb
synced 2026-07-01 07:41:17 -07:00
We ignore the name/description and only display the id in the ui. To make sure the is are the same, the OUTPUT_NAME cmake target property is set. Otherwise, we would need a json file with the KPlugin object and then the id in it, which is unnecessary work for sth. that can be done in a single line. Having the file base name and id differ is also discouraged, see https://phabricator.kde.org/T14499
20 lines
541 B
CMake
20 lines
541 B
CMake
include_directories (${CMAKE_CURRENT_SOURCE_DIR}
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
)
|
|
|
|
set (krfb_events_x11_SRCS
|
|
x11events.cpp
|
|
x11eventsplugin.cpp
|
|
)
|
|
|
|
add_library (krfb_events_x11 MODULE ${krfb_events_x11_SRCS})
|
|
|
|
target_link_libraries (krfb_events_x11
|
|
${X11_XTest_LIB}
|
|
KF5::CoreAddons
|
|
krfbprivate
|
|
)
|
|
set_target_properties(krfb_events_x11 PROPERTIES OUTPUT_NAME x11)
|
|
|
|
install (TARGETS krfb_events_x11 DESTINATION ${KDE_INSTALL_PLUGINDIR}/krfb/events)
|