2014-11-13 01:04:59 +02:00
|
|
|
project(kfile)
|
|
|
|
|
|
|
|
include_directories(
|
2015-09-01 01:05:33 +03:00
|
|
|
${KDE4_KIO_INCLUDES}
|
|
|
|
${CMAKE_SOURCE_DIR}/solid
|
|
|
|
${CMAKE_BINARY_DIR}/solid
|
2020-02-01 22:53:13 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2014-11-13 01:04:59 +02:00
|
|
|
)
|
|
|
|
|
2015-09-01 01:05:33 +03:00
|
|
|
if(ENABLE_TESTING)
|
|
|
|
add_subdirectory(tests)
|
|
|
|
endif()
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
set(kfile_LIB_SRCS
|
2015-09-01 01:05:33 +03:00
|
|
|
kdiroperator.cpp
|
|
|
|
kdiroperatordetailview.cpp
|
|
|
|
kdirselectdialog.cpp
|
2015-11-01 15:28:30 +02:00
|
|
|
# used in combination with kio/kio/kdirmodel.cpp
|
|
|
|
kdirsortfilterproxymodel.cpp
|
2015-09-01 01:05:33 +03:00
|
|
|
kfilebookmarkhandler.cpp
|
|
|
|
kfilefiltercombo.cpp
|
|
|
|
kfiletreeview.cpp
|
|
|
|
kfilewidget.cpp
|
|
|
|
kfileplacesitem.cpp
|
|
|
|
kfileplacesmodel.cpp
|
|
|
|
kfileplacessharedbookmarks.cpp
|
|
|
|
kfileplacesview.cpp
|
|
|
|
kfileplaceeditdialog.cpp
|
|
|
|
kfilepreviewgenerator.cpp
|
|
|
|
knameandurlinputdialog.cpp
|
|
|
|
knewfilemenu.cpp
|
|
|
|
kurlnavigatordropdownbutton.cpp
|
|
|
|
kurlnavigatorbuttonbase.cpp
|
|
|
|
kurlnavigatorbutton.cpp
|
|
|
|
kurlnavigatorplacesselector.cpp
|
|
|
|
kurlnavigatorprotocolcombo.cpp
|
|
|
|
kurlnavigatortogglebutton.cpp
|
|
|
|
kurlnavigator.cpp
|
|
|
|
kurlnavigatormenu.cpp
|
2014-11-13 01:04:59 +02:00
|
|
|
)
|
|
|
|
|
2015-09-01 01:05:33 +03:00
|
|
|
add_library(kfile ${LIBRARY_TYPE} ${kfile_LIB_SRCS})
|
2015-11-01 15:28:30 +02:00
|
|
|
|
2015-11-02 04:32:40 +02:00
|
|
|
target_link_libraries(kfile
|
2015-09-03 22:21:32 +00:00
|
|
|
${KDE4_SOLID_LIBS}
|
2015-11-02 04:32:40 +02:00
|
|
|
${KDE4_KIO_LIBS}
|
|
|
|
${KDE4_KDEUI_LIBS}
|
|
|
|
${KDE4_KDECORE_LIBS}
|
2014-11-13 01:04:59 +02:00
|
|
|
)
|
|
|
|
|
2015-09-03 22:21:32 +00:00
|
|
|
set_target_properties(kfile PROPERTIES
|
|
|
|
VERSION ${GENERIC_LIB_VERSION}
|
|
|
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-11-01 15:28:30 +02:00
|
|
|
install(
|
|
|
|
TARGETS kfile
|
|
|
|
EXPORT kdelibsLibraryTargets
|
|
|
|
${INSTALL_TARGETS_DEFAULT_ARGS}
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2016-04-27 18:43:11 +00:00
|
|
|
generate_export_header(kfile)
|
|
|
|
|
2015-11-01 15:28:30 +02:00
|
|
|
install(
|
|
|
|
FILES
|
2015-09-01 01:05:33 +03:00
|
|
|
kdiroperator.h
|
|
|
|
kdirselectdialog.h
|
|
|
|
kdirsortfilterproxymodel.h
|
|
|
|
kfilefiltercombo.h
|
|
|
|
kfileplacesmodel.h
|
|
|
|
kfileplacesview.h
|
|
|
|
kfilepreviewgenerator.h
|
|
|
|
kfiletreeview.h
|
|
|
|
kfilewidget.h
|
|
|
|
kurlnavigator.h
|
|
|
|
knewfilemenu.h
|
|
|
|
knameandurlinputdialog.h
|
2016-04-27 18:43:11 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/kfile_export.h
|
2015-09-01 01:05:33 +03:00
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}
|
|
|
|
COMPONENT Devel
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
############ module used by KFileDialog ##########
|
2015-09-03 22:21:32 +00:00
|
|
|
|
2015-11-01 15:28:30 +02:00
|
|
|
kde4_add_plugin(kfilemodule kfilemodule.cpp)
|
2015-09-01 01:05:33 +03:00
|
|
|
|
2015-11-01 15:28:30 +02:00
|
|
|
target_link_libraries(kfilemodule
|
|
|
|
${KDE4_KFILE_LIBS}
|
|
|
|
${KDE4_KIO_LIBS}
|
|
|
|
)
|
2015-09-01 01:05:33 +03:00
|
|
|
|
2015-11-01 15:28:30 +02:00
|
|
|
install(
|
|
|
|
TARGETS kfilemodule
|
|
|
|
DESTINATION ${PLUGIN_INSTALL_DIR}
|
|
|
|
)
|
2015-09-01 01:05:33 +03:00
|
|
|
|
2015-11-01 15:28:30 +02:00
|
|
|
install(
|
|
|
|
FILES kfilemodule.desktop
|
|
|
|
DESTINATION ${SERVICES_INSTALL_DIR}
|
|
|
|
)
|