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
441 B
CMake
15 lines
441 B
CMake
add_definitions(-DTRANSLATION_DOMAIN=\"kdeconnect-cli\")
|
|
|
|
add_executable(kdeconnect-cli kdeconnect-cli.cpp)
|
|
ecm_mark_nongui_executable(kdeconnect-cli)
|
|
|
|
target_link_libraries(kdeconnect-cli
|
|
kdeconnectinterfaces
|
|
kdeconnectcore
|
|
kdeconnectversion
|
|
KF5::CoreAddons
|
|
KF5::I18n
|
|
)
|
|
|
|
install(TARGETS kdeconnect-cli ${INSTALL_TARGETS_DEFAULT_ARGS})
|
|
install(FILES kdeconnect.zsh RENAME _kdeconnect DESTINATION ${ZSH_AUTOCOMPLETE_DIR})
|