2006-11-21 06:02:05 +00:00
|
|
|
|
|
|
|
add_subdirectory( pics )
|
|
|
|
add_subdirectory( servicemenus )
|
2007-05-19 08:03:39 +00:00
|
|
|
add_subdirectory( tests )
|
2006-11-21 06:02:05 +00:00
|
|
|
|
2007-05-07 12:01:37 +00:00
|
|
|
include_directories( ${CMAKE_SOURCE_DIR}/libkonq ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} )
|
2006-11-21 06:02:05 +00:00
|
|
|
|
2007-04-04 14:47:36 +00:00
|
|
|
add_definitions (-DQT3_SUPPORT)
|
|
|
|
|
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-04-10 08:46:21 +00:00
|
|
|
dolphinitemcategorizer.cpp
|
|
|
|
klistview.cpp
|
2007-06-17 15:32:31 +00:00
|
|
|
ksortfilterproxymodel.cpp
|
2007-04-10 08:46:21 +00:00
|
|
|
dolphinsettings.cpp
|
|
|
|
viewproperties.cpp
|
|
|
|
dolphinsortfilterproxymodel.cpp
|
2007-05-19 08:03:39 +00:00
|
|
|
renamedialog.cpp
|
2007-07-01 14:25:21 +00:00
|
|
|
dolphinview.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_automoc(${dolphinprivate_LIB_SRCS})
|
|
|
|
|
|
|
|
kde4_add_library(dolphinprivate SHARED ${dolphinprivate_LIB_SRCS})
|
|
|
|
|
2007-06-22 10:18:46 +00:00
|
|
|
find_package(Nepomuk)
|
|
|
|
macro_bool_to_01(Nepomuk_FOUND HAVE_NEPOMUK)
|
|
|
|
|
|
|
|
configure_file(config-nepomuk.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-nepomuk.h )
|
|
|
|
|
2007-04-09 09:16:39 +00:00
|
|
|
target_link_libraries(dolphinprivate ${KDE4_KDEUI_LIBS} ${KDE4_KFILE_LIBS} konq)
|
2007-06-22 10:18:46 +00:00
|
|
|
if (Nepomuk_FOUND)
|
|
|
|
target_link_libraries(dolphinprivate ${NEPOMUK_LIBRARIES})
|
|
|
|
endif (Nepomuk_FOUND)
|
|
|
|
|
2007-03-23 15:32:28 +00:00
|
|
|
|
|
|
|
set_target_properties(dolphinprivate PROPERTIES VERSION 1.0.0 SOVERSION 1 )
|
|
|
|
install(TARGETS dolphinprivate DESTINATION ${LIB_INSTALL_DIR} )
|
|
|
|
|
|
|
|
|
2007-07-01 14:25:21 +00:00
|
|
|
##########################################
|
|
|
|
|
|
|
|
set(dolphinpart_SRCS
|
|
|
|
dolphinpart.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
kde4_automoc(${dolphinpart_SRCS})
|
|
|
|
|
|
|
|
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
|
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
|
|
|
|
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
|
|
|
|
dolphinsettingsdialog.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
|
2006-12-20 19:10:39 +00:00
|
|
|
pixmapviewer.cpp
|
2006-11-24 22:10:33 +00:00
|
|
|
settingspagebase.cpp
|
|
|
|
sidebarpage.cpp
|
|
|
|
statusbarspaceinfo.cpp
|
2006-12-20 19:10:39 +00:00
|
|
|
statusbarmessagelabel.cpp
|
2007-05-06 21:50:24 +00:00
|
|
|
terminalsidebarpage.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
|
|
|
|
|
|
|
kde4_automoc(${dolphin_SRCS})
|
|
|
|
|
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 ###############
|
|
|
|
|
|
|
|
install( FILES dolphin.desktop DESTINATION ${XDG_APPS_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 )
|
|
|
|
|
|
|
|
kde4_install_icons( ${ICON_INSTALL_DIR} )
|