79164ca8ba
We use kdeconnect-version.h in several places and therefore it needs to be in the include path. We currently do this by setting target_include_path in a few places. Replace this with an interface library that we can link against that sets up the correct include path. IMO it is cleaner this way.
15 lines
439 B
CMake
15 lines
439 B
CMake
ki18n_wrap_ui(telhandler_SRCS dialog.ui)
|
|
|
|
add_executable(kdeconnect-handler kdeconnect-handler.cpp ${telhandler_SRCS})
|
|
|
|
target_link_libraries(kdeconnect-handler
|
|
kdeconnectinterfaces
|
|
kdeconnectcore
|
|
kdeconnectversion
|
|
Qt5::Widgets
|
|
KF5::CoreAddons
|
|
KF5::I18n
|
|
)
|
|
|
|
install(TARGETS kdeconnect-handler ${INSTALL_TARGETS_DEFAULT_ARGS})
|
|
install(PROGRAMS org.kde.kdeconnect.handler.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
|