2006-11-21 06:02:05 +00:00
|
|
|
|
|
|
|
add_subdirectory( pics )
|
2007-05-19 08:03:39 +00:00
|
|
|
add_subdirectory( tests )
|
2006-11-21 06:02:05 +00:00
|
|
|
|
2008-05-05 14:21:55 +00:00
|
|
|
find_package(QImageBlitz REQUIRED)
|
2008-01-04 22:59:55 +00:00
|
|
|
macro_optional_find_package(Soprano)
|
|
|
|
|
2008-05-05 14:21:55 +00:00
|
|
|
include_directories( ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ${QIMAGEBLITZ_INCLUDES} )
|
2008-03-21 21:05:05 +00:00
|
|
|
|
2007-12-17 12:33:50 +00:00
|
|
|
if (Soprano_FOUND)
|
|
|
|
include_directories( ${SOPRANO_INCLUDE_DIR} )
|
|
|
|
endif (Soprano_FOUND)
|
2006-11-21 06:02:05 +00:00
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
2007-03-23 15:32:28 +00:00
|
|
|
set(dolphinprivate_LIB_SRCS
|
2007-04-10 08:46:21 +00:00
|
|
|
dolphincontroller.cpp
|
|
|
|
dolphindetailsview.cpp
|
|
|
|
dolphiniconsview.cpp
|
2007-07-01 14:25:21 +00:00
|
|
|
dolphincolumnview.cpp
|
2007-10-05 21:00:44 +00:00
|
|
|
dolphincolumnwidget.cpp
|
2008-01-11 11:37:28 +00:00
|
|
|
dolphindropcontroller.cpp
|
|
|
|
dolphinsortfilterproxymodel.cpp
|
2007-11-20 21:11:48 +00:00
|
|
|
draganddrophelper.cpp
|
2007-09-17 04:02:17 +00:00
|
|
|
dolphinmodel.cpp
|
2007-04-10 08:46:21 +00:00
|
|
|
dolphinsettings.cpp
|
2007-09-17 04:02:17 +00:00
|
|
|
dolphincategorydrawer.cpp
|
2007-07-01 14:25:21 +00:00
|
|
|
dolphinview.cpp
|
2008-02-11 12:34:48 +00:00
|
|
|
dolphinviewactionhandler.cpp
|
2008-01-11 11:37:28 +00:00
|
|
|
iconmanager.cpp
|
2008-04-09 20:12:43 +00:00
|
|
|
ktooltip.cpp
|
|
|
|
kballoontipdelegate.cpp
|
|
|
|
kformattedballoontipdelegate.cpp
|
2008-01-11 11:37:28 +00:00
|
|
|
renamedialog.cpp
|
2008-01-26 21:45:28 +00:00
|
|
|
selectiontoggle.cpp
|
|
|
|
selectionmanager.cpp
|
2008-04-09 20:12:43 +00:00
|
|
|
tooltipmanager.cpp
|
2008-01-11 11:37:28 +00:00
|
|
|
viewproperties.cpp
|
2008-05-04 21:16:30 +00:00
|
|
|
viewpropertiesdialog.cpp
|
|
|
|
viewpropsprogressinfo.cpp
|
|
|
|
additionalinfodialog.cpp
|
|
|
|
applyviewpropsjob.cpp
|
2007-04-10 08:46:21 +00:00
|
|
|
)
|
2007-03-23 15:32:28 +00:00
|
|
|
|
|
|
|
kde4_add_kcfg_files(dolphinprivate_LIB_SRCS
|
2007-04-10 08:46:21 +00:00
|
|
|
dolphin_columnmodesettings.kcfgc
|
|
|
|
dolphin_directoryviewpropertysettings.kcfgc
|
|
|
|
dolphin_detailsmodesettings.kcfgc
|
|
|
|
dolphin_iconsmodesettings.kcfgc
|
|
|
|
dolphin_generalsettings.kcfgc)
|
2007-03-23 15:32:28 +00:00
|
|
|
|
|
|
|
kde4_add_library(dolphinprivate SHARED ${dolphinprivate_LIB_SRCS})
|
|
|
|
|
2007-06-22 10:18:46 +00:00
|
|
|
find_package(Nepomuk)
|
2007-12-10 12:34:56 +00:00
|
|
|
find_package(Soprano)
|
2007-06-22 10:18:46 +00:00
|
|
|
macro_bool_to_01(Nepomuk_FOUND HAVE_NEPOMUK)
|
|
|
|
|
|
|
|
configure_file(config-nepomuk.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-nepomuk.h )
|
|
|
|
|
2008-05-05 14:21:55 +00:00
|
|
|
target_link_libraries(dolphinprivate ${KDE4_KFILE_LIBS} konq ${QIMAGEBLITZ_LIBRARIES})
|
2008-04-26 13:45:18 +00:00
|
|
|
if(X11_Xrender_FOUND)
|
|
|
|
target_link_libraries(dolphinprivate ${X11_Xrender_LIB} )
|
|
|
|
endif(X11_Xrender_FOUND)
|
2007-06-22 10:18:46 +00:00
|
|
|
if (Nepomuk_FOUND)
|
2007-12-10 12:34:56 +00:00
|
|
|
target_link_libraries(dolphinprivate ${NEPOMUK_LIBRARIES} ${SOPRANO_LIBRARIES})
|
2007-06-22 10:18:46 +00:00
|
|
|
endif (Nepomuk_FOUND)
|
|
|
|
|
2007-03-23 15:32:28 +00:00
|
|
|
|
2007-12-06 16:55:50 +00:00
|
|
|
set_target_properties(dolphinprivate PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
|
2008-04-11 06:52:03 +00:00
|
|
|
install(TARGETS dolphinprivate ${INSTALL_TARGETS_DEFAULT_ARGS})
|
2007-03-23 15:32:28 +00:00
|
|
|
|
|
|
|
|
2007-07-01 14:25:21 +00:00
|
|
|
##########################################
|
|
|
|
|
|
|
|
set(dolphinpart_SRCS
|
|
|
|
dolphinpart.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
kde4_add_plugin(dolphinpart ${dolphinpart_SRCS})
|
|
|
|
|
|
|
|
target_link_libraries(dolphinpart dolphinprivate)
|
|
|
|
|
|
|
|
install(TARGETS dolphinpart DESTINATION ${PLUGIN_INSTALL_DIR} )
|
|
|
|
|
|
|
|
install(FILES dolphinpart.rc DESTINATION ${DATA_INSTALL_DIR}/dolphinpart )
|
|
|
|
install(FILES dolphinpart.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
|
|
|
|
2007-03-23 15:32:28 +00:00
|
|
|
##########################################
|
|
|
|
|
2006-11-24 22:10:33 +00:00
|
|
|
set(dolphin_SRCS
|
2008-03-23 15:54:07 +00:00
|
|
|
columnviewsettingspage.cpp
|
|
|
|
commentwidget.cpp
|
|
|
|
commenteditwidget.cpp
|
|
|
|
detailsviewsettingspage.cpp
|
|
|
|
dolphinapplication.cpp
|
|
|
|
dolphinfontrequester.cpp
|
|
|
|
dolphinmainwindow.cpp
|
|
|
|
dolphinnewmenu.cpp
|
|
|
|
dolphinviewcontainer.cpp
|
|
|
|
dolphinstatusbar.cpp
|
|
|
|
dolphindirlister.cpp
|
|
|
|
dolphincontextmenu.cpp
|
|
|
|
dolphinfileplacesview.cpp
|
|
|
|
dolphinsettingsdialog.cpp
|
|
|
|
draganddrophelper.cpp
|
2008-04-18 19:43:16 +00:00
|
|
|
fileitemcapabilities.cpp
|
2008-03-23 15:54:07 +00:00
|
|
|
filterbar.cpp
|
|
|
|
generalsettingspage.cpp
|
|
|
|
generalviewsettingspage.cpp
|
|
|
|
iconsizedialog.cpp
|
|
|
|
iconsviewsettingspage.cpp
|
|
|
|
infosidebarpage.cpp
|
2008-04-22 05:45:16 +00:00
|
|
|
ktreeview.cpp
|
2008-03-23 15:54:07 +00:00
|
|
|
main.cpp
|
|
|
|
metadatawidget.cpp
|
|
|
|
metatextlabel.cpp
|
|
|
|
pixmapviewer.cpp
|
|
|
|
settingspagebase.cpp
|
|
|
|
sidebarpage.cpp
|
|
|
|
startupsettingspage.cpp
|
|
|
|
statusbarspaceinfo.cpp
|
|
|
|
statusbarmessagelabel.cpp
|
|
|
|
treeviewcontextmenu.cpp
|
|
|
|
treeviewsidebarpage.cpp
|
|
|
|
sidebartreeview.cpp
|
|
|
|
viewsettingspage.cpp
|
|
|
|
viewsettingspagebase.cpp
|
2008-05-04 21:16:30 +00:00
|
|
|
)
|
2008-03-23 15:54:07 +00:00
|
|
|
|
|
|
|
kde4_add_kcfg_files(dolphin_SRCS
|
|
|
|
dolphin_folderspanelsettings.kcfgc)
|
2006-11-21 06:02:05 +00:00
|
|
|
|
2008-03-21 21:05:05 +00:00
|
|
|
if(Nepomuk_FOUND)
|
|
|
|
set(dolphin_SRCS
|
|
|
|
${dolphin_SRCS}
|
|
|
|
nepomukmassupdatejob.cpp
|
|
|
|
tagcloud/tagcloud.cpp
|
|
|
|
tagcloud/resourcetaggingwidget.cpp
|
|
|
|
tagcloud/taggingpopup.cpp
|
|
|
|
tagcloud/newtagdialog.cpp
|
|
|
|
)
|
|
|
|
kde4_add_ui_files(dolphin_SRCS tagcloud/newtagdialog.ui)
|
|
|
|
|
|
|
|
endif(Nepomuk_FOUND)
|
|
|
|
|
2008-03-10 17:33:30 +00:00
|
|
|
if(NOT WIN32)
|
|
|
|
set(dolphin_SRCS ${dolphin_SRCS} terminalsidebarpage.cpp)
|
|
|
|
endif(NOT WIN32)
|
2006-11-21 06:02:05 +00:00
|
|
|
|
2007-02-18 17:01:36 +00:00
|
|
|
qt4_add_dbus_adaptor(dolphin_SRCS
|
|
|
|
org.kde.dolphin.Application.xml
|
|
|
|
dolphinapplication.h DolphinApplication)
|
|
|
|
qt4_add_dbus_adaptor(dolphin_SRCS
|
|
|
|
org.kde.dolphin.MainWindow.xml
|
|
|
|
dolphinmainwindow.h DolphinMainWindow)
|
2008-04-02 21:32:47 +00:00
|
|
|
|
|
|
|
kde4_add_app_icon(dolphin_SRCS "${KDE4_ICON_INSTALL_DIR}/oxygen/*/apps/system-file-manager.png")
|
|
|
|
|
2006-11-21 06:02:05 +00:00
|
|
|
kde4_add_executable(dolphin ${dolphin_SRCS})
|
2007-05-01 15:18:07 +00:00
|
|
|
|
2007-07-02 14:04:12 +00:00
|
|
|
target_link_libraries(dolphin ${KDE4_KDEPRINT_LIBS} ${KDE4_KFILE_LIBS} konq dolphinprivate)
|
2007-05-02 10:02:19 +00:00
|
|
|
|
2007-06-11 21:46:04 +00:00
|
|
|
if (Nepomuk_FOUND)
|
|
|
|
target_link_libraries(dolphin ${NEPOMUK_LIBRARIES})
|
|
|
|
endif (Nepomuk_FOUND)
|
2006-11-21 06:02:05 +00:00
|
|
|
|
2008-05-27 11:36:57 +00:00
|
|
|
install(TARGETS dolphin ${INSTALL_TARGETS_DEFAULT_ARGS})
|
2006-11-21 06:02:05 +00:00
|
|
|
|
2008-03-23 15:54:07 +00:00
|
|
|
##########################################
|
|
|
|
|
|
|
|
set(kcm_dolphin_PART_SRCS
|
|
|
|
kcmdolphin.cpp
|
|
|
|
columnviewsettingspage.cpp
|
|
|
|
detailsviewsettingspage.cpp
|
|
|
|
dolphinfontrequester.cpp
|
2008-03-25 12:06:18 +00:00
|
|
|
# dolphinsettings.cpp
|
2008-03-23 15:54:07 +00:00
|
|
|
generalviewsettingspage.cpp
|
|
|
|
iconsizedialog.cpp
|
|
|
|
iconsviewsettingspage.cpp
|
|
|
|
pixmapviewer.cpp
|
|
|
|
viewsettingspagebase.cpp
|
2008-03-25 12:06:18 +00:00
|
|
|
# viewproperties.cpp
|
|
|
|
)
|
2008-03-23 15:54:07 +00:00
|
|
|
|
|
|
|
kde4_add_kcfg_files(kcm_dolphin_PART_SRCS
|
|
|
|
dolphin_columnmodesettings.kcfgc
|
|
|
|
dolphin_directoryviewpropertysettings.kcfgc
|
|
|
|
dolphin_detailsmodesettings.kcfgc
|
|
|
|
dolphin_iconsmodesettings.kcfgc
|
|
|
|
dolphin_generalsettings.kcfgc)
|
|
|
|
|
|
|
|
kde4_add_plugin(kcm_dolphin ${kcm_dolphin_PART_SRCS})
|
|
|
|
|
2008-03-25 12:06:18 +00:00
|
|
|
target_link_libraries(kcm_dolphin ${KDE4_KDEUI_LIBS} ${KDE4_KFILE_LIBS} dolphinprivate)
|
2008-03-23 15:54:07 +00:00
|
|
|
if (Nepomuk_FOUND)
|
|
|
|
target_link_libraries(kcm_dolphin ${NEPOMUK_LIBRARIES})
|
|
|
|
endif (Nepomuk_FOUND)
|
|
|
|
|
|
|
|
install(TARGETS kcm_dolphin DESTINATION ${PLUGIN_INSTALL_DIR} )
|
2006-11-21 06:02:05 +00:00
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
2007-07-23 07:01:14 +00:00
|
|
|
install( FILES dolphin.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
|
2007-04-01 17:57:53 +00:00
|
|
|
install( FILES dolphin_directoryviewpropertysettings.kcfg dolphin_generalsettings.kcfg dolphin_columnmodesettings.kcfg dolphin_iconsmodesettings.kcfg dolphin_detailsmodesettings.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
|
2006-11-21 06:02:05 +00:00
|
|
|
install( FILES dolphinui.rc DESTINATION ${DATA_INSTALL_DIR}/dolphin )
|
2008-04-09 20:12:43 +00:00
|
|
|
install( FILES kcmdolphin.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|