kde-workspace/kioslave/mtp/CMakeLists.txt
Ivailo Monev 388dc56870 generic: consistent library variables usage
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-02-26 20:14:30 +02:00

27 lines
868 B
CMake

#add_definitions(-DKDE_DEFAULT_DEBUG_AREA=7999)
add_definitions(-DQT_NO_CAST_FROM_ASCII)
set( kio_mtp_PART_SRCS
devicecache.cpp
filecache.cpp
kio_mtp.cpp
kio_mtp_helpers.cpp
)
include_directories(
${KDE4_INCLUDES}
${CMAKE_CURRENT_BINARY_DIR}
)
kde4_add_plugin( kio_mtp ${kio_mtp_PART_SRCS} )
target_link_libraries( kio_mtp ${KDE4_KIO_LIBS} ${MTP_LIBRARIES} ${KDE4_SOLID_LIBS})
install( TARGETS kio_mtp DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES mtp-network.desktop DESTINATION ${KDE4_DATA_INSTALL_DIR}/konqueror/dirtree/remote )
install( FILES solid_mtp.desktop DESTINATION ${KDE4_DATA_INSTALL_DIR}/solid/actions )
install( FILES mtp.protocol DESTINATION ${KDE4_SERVICES_INSTALL_DIR} )
install( FILES mtp-network.desktop DESTINATION ${KDE4_DATA_INSTALL_DIR}/remoteview )