Fix crash if key bindings specified in profile cannot be found. Improve
[personal-kdebase.git] / apps / konqueror / src / CMakeLists.txt
blobbe1e6104b723ffd2af815f8c74a8f62ad39166bb
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)
28 kde4_add_library(konquerorprivate SHARED ${konquerorprivate_SRCS})
29 target_link_libraries(konquerorprivate ${KDE4_KPARTS_LIBS} ${ZLIB_LIBRARY})
30 set_target_properties(konquerorprivate PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
31 install(TARGETS konquerorprivate ${INSTALL_TARGETS_DEFAULT_ARGS})
33 ########### konqueror ###############
34 if (WIN32)
35     add_definitions(-DMAKE_KDEINIT_KONQUEROR_LIB)
36 endif(WIN32)
38 set(konqueror_KDEINIT_SRCS
39    konqapplication.cpp
40    konqguiclients.cpp
41    konqrun.cpp
42    konqview.cpp
43    konqviewmanager.cpp
44    konqmisc.cpp
45    konqdraggablelabel.cpp
46    konqframe.cpp
47    konqframevisitor.cpp
48    konqframestatusbar.cpp
49    konqframecontainer.cpp
50    konqtabs.cpp
51    konqactions.cpp
52    konqprofiledlg.cpp
53    konqsessiondlg.cpp
54    konqfactory.cpp
55    konqcombo.cpp
56    konqbrowseriface.cpp
57    delayedinitializer.cpp
58    konqmainwindow.cpp
59    konqextensionmanager.cpp
60    konqbookmarkbar.cpp
61    konqsettings.cpp
62    KonquerorAdaptor.cpp
63    KonqMainWindowAdaptor.cpp
64    KonqViewAdaptor.cpp
65    konqproxystyle.cpp
66    konqundomanager.cpp
67    konqclosedwindowsmanager.cpp
68    konqsessionmanager.cpp
69    konqcloseditem.cpp
72 kde4_add_kcfg_files(konqueror_KDEINIT_SRCS konqsettingsxt.kcfgc)
73 kde4_add_ui_files(konqueror_KDEINIT_SRCS konqprofiledlg_base.ui)
74 kde4_add_ui_files(konqueror_KDEINIT_SRCS konqsessiondlg_base.ui)
75 kde4_add_ui_files(konqueror_KDEINIT_SRCS konqnewsessiondlg_base.ui)
77 qt4_add_dbus_interface(konqueror_KDEINIT_SRCS org.kde.Konqueror.Main.xml konqueror_interface)
78 qt4_add_dbus_interface(konqueror_KDEINIT_SRCS ${KDE4_DBUS_INTERFACES_DIR}/org.kde.kded.xml kded_interface)
79 qt4_add_dbus_adaptor(konqueror_KDEINIT_SRCS org.kde.Konqueror.UndoManager.xml konqclosedwindowsmanager.h KonqClosedWindowsManager konqclosedwindowsmanageradaptor KonqClosedWindowsManagerAdaptor)
80 qt4_add_dbus_interface(konqueror_KDEINIT_SRCS org.kde.Konqueror.UndoManager.xml konqclosedwindowsmanager_interface)
81 qt4_add_dbus_adaptor(konqueror_KDEINIT_SRCS org.kde.Konqueror.SessionManager.xml konqsessionmanager.h KonqSessionManager konqsessionmanageradaptor KonqSessionManagerAdaptor)
82 qt4_add_dbus_interface(konqueror_KDEINIT_SRCS org.kde.Konqueror.SessionManager.xml konqsessionmanager_interface)
84 kde4_add_app_icon(konqueror_KDEINIT_SRCS "${KDE4_ICON_INSTALL_DIR}/oxygen/*/apps/konqueror.png")
85 kde4_add_kdeinit_executable(konqueror ${konqueror_KDEINIT_SRCS} konqmain.cpp)
86 target_link_libraries(kdeinit_konqueror konquerorprivate konq ${KDE4_KPARTS_LIBS} ${KDE4_KUTILS_LIBS})
87 if (UNIX)
88   target_link_libraries(kdeinit_konqueror ${X11_LIBRARIES})
89 endif (UNIX)
92 if (NOT WIN32)
93     install(TARGETS kdeinit_konqueror  ${INSTALL_TARGETS_DEFAULT_ARGS} )
94 endif (NOT WIN32)
95 install(TARGETS konqueror ${INSTALL_TARGETS_DEFAULT_ARGS})
97 ########### install files ###############
98 install( FILES konqueror.kcfg  DESTINATION  ${KCFG_INSTALL_DIR} )
99 install( FILES konqueror.rc DESTINATION  ${DATA_INSTALL_DIR}/konqueror )
100 install( FILES org.kde.Konqueror.Main.xml org.kde.Konqueror.MainWindow.xml DESTINATION ${DBUS_INTERFACES_INSTALL_DIR} )