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
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 ###############
35 add_definitions(-DMAKE_KDEINIT_KONQUEROR_LIB)
38 set(konqueror_KDEINIT_SRCS
45 konqdraggablelabel.cpp
48 konqframestatusbar.cpp
49 konqframecontainer.cpp
57 delayedinitializer.cpp
59 konqextensionmanager.cpp
63 KonqMainWindowAdaptor.cpp
67 konqclosedwindowsmanager.cpp
68 konqsessionmanager.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})
88 target_link_libraries(kdeinit_konqueror ${X11_LIBRARIES})
93 install(TARGETS kdeinit_konqueror ${INSTALL_TARGETS_DEFAULT_ARGS} )
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} )