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-01-04 22:59:55 +00:00
|
|
|
macro_optional_find_package(Soprano)
|
|
|
|
|
2007-12-17 12:33:50 +00:00
|
|
|
include_directories( ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ${BLITZ_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
|
2008-03-20 16:58:59 +00:00
|
|
|
dolphinfileitemdelegate.cpp
|
2008-01-11 11:37:28 +00:00
|
|
|
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
|
|
|
|
renamedialog.cpp
|
2008-01-26 21:45:28 +00:00
|
|
|
selectiontoggle.cpp
|
|
|
|
selectionmanager.cpp
|
2008-01-11 11:37:28 +00:00
|
|
|
viewproperties.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 )
|
|
|
|
|
2007-09-27 04:11:28 +00:00
|
|
|
target_link_libraries(dolphinprivate ${KDE4_KFILE_LIBS} konq ${BLITZ_LIBRARIES})
|
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-02-18 21:51:54 +00:00
|
|
|
install(TARGETS dolphinprivate DESTINATION ${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
|
2007-10-30 20:52:03 +00:00
|
|
|
additionalinfodialog.cpp
|
2006-12-20 19:10:39 +00:00
|
|
|
applyviewpropsjob.cpp
|
2007-04-01 17:57:53 +00:00
|
|
|
columnviewsettingspage.cpp
|
2006-12-20 19:10:39 +00:00
|
|
|
detailsviewsettingspage.cpp
|
2006-11-29 00:02:19 +00:00
|
|
|
dolphinapplication.cpp
|
2008-02-15 22:51:23 +00:00
|
|
|
dolphinfontrequester.cpp
|
2006-11-29 00:02:19 +00:00
|
|
|
dolphinmainwindow.cpp
|
2007-01-26 00:55:49 +00:00
|
|
|
dolphinnewmenu.cpp
|
2007-06-07 21:10:48 +00:00
|
|
|
dolphinviewcontainer.cpp
|
2006-11-24 22:10:33 +00:00
|
|
|
dolphinstatusbar.cpp
|
|
|
|
dolphindirlister.cpp
|
|
|
|
dolphincontextmenu.cpp
|
2008-01-30 22:22:46 +00:00
|
|
|
dolphinfileplacesview.cpp
|
2006-11-24 22:10:33 +00:00
|
|
|
dolphinsettingsdialog.cpp
|
2007-11-20 21:11:48 +00:00
|
|
|
draganddrophelper.cpp
|
2006-12-20 19:10:39 +00:00
|
|
|
filterbar.cpp
|
|
|
|
generalsettingspage.cpp
|
|
|
|
generalviewsettingspage.cpp
|
2007-03-11 14:41:09 +00:00
|
|
|
iconsizedialog.cpp
|
2006-12-20 19:10:39 +00:00
|
|
|
iconsviewsettingspage.cpp
|
|
|
|
infosidebarpage.cpp
|
|
|
|
main.cpp
|
2007-03-20 09:01:22 +00:00
|
|
|
metadatawidget.cpp
|
2008-03-21 21:05:05 +00:00
|
|
|
commentwidget.cpp
|
|
|
|
commenteditwidget.cpp
|
2008-03-16 02:17:16 +00:00
|
|
|
metatextlabel.cpp
|
2006-12-20 19:10:39 +00:00
|
|
|
pixmapviewer.cpp
|
2006-11-24 22:10:33 +00:00
|
|
|
settingspagebase.cpp
|
|
|
|
sidebarpage.cpp
|
2008-01-21 16:51:31 +00:00
|
|
|
startupsettingspage.cpp
|
2006-11-24 22:10:33 +00:00
|
|
|
statusbarspaceinfo.cpp
|
2006-12-20 19:10:39 +00:00
|
|
|
statusbarmessagelabel.cpp
|
2007-03-25 06:44:28 +00:00
|
|
|
treeviewcontextmenu.cpp
|
2007-03-02 18:59:09 +00:00
|
|
|
treeviewsidebarpage.cpp
|
2007-03-11 00:56:43 +00:00
|
|
|
sidebartreeview.cpp
|
2006-12-20 19:10:39 +00:00
|
|
|
viewpropertiesdialog.cpp
|
|
|
|
viewsettingspage.cpp
|
|
|
|
viewpropsprogressinfo.cpp )
|
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)
|
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
|
|
|
|
|
|
|
install(TARGETS dolphin DESTINATION ${BIN_INSTALL_DIR})
|
|
|
|
|
|
|
|
|
|
|
|
########### 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 )
|