Add (and install) svg for the new krunner interface.
[kdebase/uwolfer.git] / apps / konqueror / src / CMakeLists.txt
blob56429570230c1e6afa860d17da91d8e9fddb85cd
1 if(KDE4_BUILD_TESTS)
2     # only with this definition will the KONQ_TESTS_EXPORT macro do something
3     add_definitions(-DCOMPILING_TESTS)
4 endif(KDE4_BUILD_TESTS)
6 add_subdirectory( tests )
8 check_symbol_exists(mallinfo        "malloc.h"                 KDE_MALLINFO_MALLOC)
9 check_symbol_exists(mallinfo        "stdlib.h"                 KDE_MALLINFO_STDLIB)
10 # TODO KDE_MALLINFO_FIELD_hblkhd
11 # TODO KDE_MALLINFO_FIELD_uordblks
12 # TODO KDE_MALLINFO_FIELD_usmblks
13 configure_file(config-konqueror.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-konqueror.h )
15 # For crc32 in konqhistorymanager.cpp
16 include_directories( ${ZLIB_INCLUDE_DIR} )
18 ########### libkonquerorprivate, shared with sidebar modules ###############
20 set(konquerorprivate_SRCS
21    konqpixmapprovider.cpp
22    konqhistorymanager.cpp
23    konqhistoryentry.cpp
25 qt4_add_dbus_interface(konquerorprivate_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/../../lib/konq/favicons/org.kde.FavIcon.xml favicon_interface)
26 qt4_add_dbus_adaptor(konquerorprivate_SRCS org.kde.Konqueror.HistoryManager.xml konqhistorymanager.h KonqHistoryManager konqhistorymanageradaptor KonqHistoryManagerAdaptor)
27 kde4_add_library(konquerorprivate SHARED ${konquerorprivate_SRCS})
28 target_link_libraries(konquerorprivate ${KDE4_KPARTS_LIBS})
29 set_target_properties(konquerorprivate PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
30 install(TARGETS konquerorprivate DESTINATION ${INSTALL_TARGETS_DEFAULT_ARGS})
32 ########### konqueror ###############
33 if (WIN32)
34     add_definitions(-DMAKE_KDEINIT_KONQUEROR_LIB)
35 endif(WIN32)
37 set(konqueror_KDEINIT_SRCS
38    konqapplication.cpp
39    konqguiclients.cpp
40    konqrun.cpp
41    konqview.cpp
42    konqviewmanager.cpp
43    konqmisc.cpp
44    konqdraggablelabel.cpp
45    konqframe.cpp
46    konqframevisitor.cpp
47    konqframestatusbar.cpp
48    konqframecontainer.cpp
49    konqtabs.cpp
50    konqactions.cpp
51    konqprofiledlg.cpp
52    konqfactory.cpp
53    konqcombo.cpp
54    konqbrowseriface.cpp
55    delayedinitializer.cpp
56    konqmainwindow.cpp
57    konqextensionmanager.cpp
58    konqbookmarkbar.cpp
59    konqsettings.cpp
60    KonquerorAdaptor.cpp
61    KonqMainWindowAdaptor.cpp
62    KonqViewAdaptor.cpp
63    konqproxystyle.cpp
64    konqundomanager.cpp
65    konqclosedtabitem.cpp
67 kde4_add_kcfg_files(konqueror_KDEINIT_SRCS konqsettingsxt.kcfgc)
68 kde4_add_ui_files(konqueror_KDEINIT_SRCS konqprofiledlg_base.ui)
70 qt4_add_dbus_interface(konqueror_KDEINIT_SRCS org.kde.Konqueror.Main.xml konqueror_interface)
71 qt4_add_dbus_interface(konqueror_KDEINIT_SRCS ${KDE4_DBUS_INTERFACES_DIR}/org.kde.kded.xml kded_interface)
72 kde4_add_kdeinit_executable(konqueror ${konqueror_KDEINIT_SRCS} konqmain.cpp)
74 # KDE4_KUTILS_LIBS used for KCMultiDialog, KCModuleInfo, and KPluginSelector
75 target_link_libraries(kdeinit_konqueror konquerorprivate konq ${KDE4_KPARTS_LIBS} ${KDE4_KUTILS_LIBS})
76 target_link_libraries(konqueror kdeinit_konqueror)
78 install(TARGETS kdeinit_konqueror  DESTINATION ${INSTALL_TARGETS_DEFAULT_ARGS} )
79 install(TARGETS konqueror DESTINATION ${BIN_INSTALL_DIR})
81 ########### install files ###############
82 install( FILES konqueror.kcfg  DESTINATION  ${KCFG_INSTALL_DIR} )
83 install( FILES konqueror.rc konq-webbrowsing.rc konq-filemanagement.rc DESTINATION  ${DATA_INSTALL_DIR}/konqueror )
84 install(FILES org.kde.Konqueror.Main.xml org.kde.Konqueror.MainWindow.xml DESTINATION ${DBUS_INTERFACES_INSTALL_DIR} )