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)
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 ###############
34 add_definitions(-DMAKE_KDEINIT_KONQUEROR_LIB)
37 set(konqueror_KDEINIT_SRCS
44 konqdraggablelabel.cpp
47 konqframestatusbar.cpp
48 konqframecontainer.cpp
55 delayedinitializer.cpp
57 konqextensionmanager.cpp
61 KonqMainWindowAdaptor.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} )