mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
29 lines
871 B
CMake
29 lines
871 B
CMake
include(KDE4Defaults)
|
|
|
|
#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_LIBRARY} ${MTP_LIBRARIES} ${KDE4_SOLID_LIBS} )
|
|
|
|
install( TARGETS kio_mtp DESTINATION ${PLUGIN_INSTALL_DIR} )
|
|
|
|
|
|
########### install files ###############
|
|
|
|
install( FILES mtp-network.desktop DESTINATION ${DATA_INSTALL_DIR}/konqueror/dirtree/remote )
|
|
install( FILES solid_mtp.desktop DESTINATION ${DATA_INSTALL_DIR}/solid/actions )
|
|
install( FILES mtp.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
|
|
install( FILES mtp-network.desktop DESTINATION ${DATA_INSTALL_DIR}/remoteview )
|