Changeset View
Changeset View
Standalone View
Standalone View
mtp/CMakeLists.txt
1 | add_definitions(-DTRANSLATION_DOMAIN=\"kio5_mtp\") | 1 | add_definitions(-DTRANSLATION_DOMAIN=\"kio5_mtp\") | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | add_definitions(-DQT_NO_CAST_FROM_ASCII) | 3 | add_definitions(-DQT_NO_CAST_FROM_ASCII) | ||
4 | 4 | | |||
5 | add_subdirectory(shared) | ||||
6 | add_subdirectory(kiod_module) | ||||
7 | | ||||
5 | set(kio_mtp_PART_SRCS | 8 | set(kio_mtp_PART_SRCS | ||
6 | devicecache.cpp | | |||
7 | filecache.cpp | | |||
8 | kio_mtp.cpp | 9 | kio_mtp.cpp | ||
9 | kio_mtp_helpers.cpp | | |||
10 | ) | 10 | ) | ||
11 | 11 | | |||
12 | include_directories(${MTP_INCLUDE_DIR}) | 12 | include_directories("shared") | ||
13 | add_library(kio_mtp MODULE ${kio_mtp_PART_SRCS} ) | 13 | add_library(kio_mtp MODULE ${kio_mtp_PART_SRCS} ) | ||
14 | target_link_libraries(kio_mtp ${MTP_LIBRARIES} Qt5::Core KF5::KIOCore KF5::I18n KF5::Solid Qt5::Network) | 14 | target_link_libraries(kio_mtp kmtp Qt5::Core KF5::KIOCore KF5::I18n KF5::DBusAddons) | ||
15 | set_target_properties(kio_mtp PROPERTIES OUTPUT_NAME "mtp") | 15 | set_target_properties(kio_mtp PROPERTIES OUTPUT_NAME "mtp") | ||
16 | 16 | | |||
17 | install(TARGETS kio_mtp DESTINATION ${PLUGIN_INSTALL_DIR}/kf5/kio) | 17 | install(TARGETS kio_mtp DESTINATION ${PLUGIN_INSTALL_DIR}/kf5/kio) | ||
18 | 18 | | |||
19 | ########### install files ############### | 19 | ########### install files ############### | ||
20 | 20 | | |||
21 | install( FILES mtp-network.desktop DESTINATION ${DATA_INSTALL_DIR}/konqueror/dirtree/remote ) | 21 | install( FILES mtp-network.desktop DESTINATION ${DATA_INSTALL_DIR}/konqueror/dirtree/remote ) | ||
22 | install( FILES solid_mtp.desktop DESTINATION ${DATA_INSTALL_DIR}/solid/actions ) | 22 | install( FILES solid_mtp.desktop DESTINATION ${DATA_INSTALL_DIR}/solid/actions ) | ||
23 | install( FILES mtp.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) | 23 | install( FILES mtp.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) | ||
24 | install( FILES mtp-network.desktop DESTINATION ${DATA_INSTALL_DIR}/remoteview ) | 24 | install( FILES mtp-network.desktop DESTINATION ${DATA_INSTALL_DIR}/remoteview ) |