CMakeLists.txt 1.01 KB
Newer Older
Samoilenko Yuri's avatar
Samoilenko Yuri committed
1
set(kdeconnect_sftp_SRCS
Samoilenko Yuri's avatar
Samoilenko Yuri committed
2
    mounter.cpp
Samoilenko Yuri's avatar
Samoilenko Yuri committed
3
    mountloop.cpp
Samoilenko Yuri's avatar
Samoilenko Yuri committed
4
    sftpplugin.cpp
Samoilenko Yuri's avatar
Samoilenko Yuri committed
5 6 7 8
)

kde4_add_plugin(kdeconnect_sftp ${kdeconnect_sftp_SRCS})

9
target_link_libraries(kdeconnect_sftp kdeconnectcore ${KDE4_KFILE_LIBS})
Samoilenko Yuri's avatar
Samoilenko Yuri committed
10 11 12 13 14 15 16 17

install(TARGETS kdeconnect_sftp DESTINATION ${PLUGIN_INSTALL_DIR} )
install(FILES kdeconnect_sftp.desktop DESTINATION ${SERVICES_INSTALL_DIR} )

include(../../../macros.cmake)

generate_and_install_dbus_interface(
    kdeconnect_sftp
18
    sftpplugin.h
Samoilenko Yuri's avatar
Samoilenko Yuri committed
19 20 21
    org.kde.kdeconnect.device.sftp.xml
    OPTIONS -a
)
Samoilenko Yuri's avatar
Samoilenko Yuri committed
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37

#######################################
# Config

set( kdeconnect_sftp_config_SRCS sftp_config.cpp )
kde4_add_ui_files( kdeconnect_sftp_config_SRCS sftp_config.ui )

kde4_add_plugin( kdeconnect_sftp_config ${kdeconnect_sftp_config_SRCS} )
target_link_libraries( kdeconnect_sftp_config
    ${KDE4_KDECORE_LIBS}
    ${KDE4_KDEUI_LIBS}
    ${KDE4_KIO_LIBS}
)

install(TARGETS kdeconnect_sftp_config DESTINATION ${PLUGIN_INSTALL_DIR} )
install(FILES kdeconnect_sftp_config.desktop DESTINATION ${SERVICES_INSTALL_DIR} )