Remove some unnecessary dependencies.
[kdepim.git] / composereditor-ng / CMakeLists.txt
blobe22e79e441ab5a9908b1f2ed6875910b3884a89d
2 add_definitions( -DQT_NO_CAST_FROM_ASCII )
3 add_definitions( -DQT_NO_CAST_TO_ASCII )
6 # Laurent install it if you want to debug it
7 #add_subdirectory(tests)
9 add_definitions(-DTRANSLATION_DOMAIN=\"libcomposereditorng\")
11 add_definitions(-DQT_STATICPLUGIN)
12 qt5_wrap_cpp(wk_HEADERS_MOC spellplugin/qwebkitplatformplugin.h)
14 #generate_export_header(COMPOSEREDITORNG BASE_NAME composereditor)
16 set(libcomposereditor_ng_SRCS
17     composereditorng_debug.cpp 
18     composereditor.cpp
19     composerview.cpp
20     link/composerlinkdialog.cpp
21     link/composeranchordialog.cpp
22     private/composerview_p.cpp
23     pagecolor/pagecolorbackgrounddialog.cpp
24     pagecolor/pagecolorbackgroundwidget.cpp
25     extendattributes/extendattributesdialog.cpp
26     extendattributes/extendattributesbutton.cpp
27     extendattributes/extendattributeswidget.cpp
28     extendattributes/extendattributesutils.cpp
29     utils/composereditorutils.cpp
30     image/composerimagedialog.cpp
31     image/composerimageresizewidget.cpp
32     table/composertabledialog.cpp
33     table/composertableresizewidget.cpp
34     table/composertableformatdialog.cpp
35     table/composertablecellformatdialog.cpp
36     table/composertableactionmenu.cpp
37     table/composercellsizewidget.cpp
38     image/composerimageresizetooltip.cpp
39     list/composerlistdialog.cpp
40     helper/tablehelper.cpp
41     helper/listhelper.cpp
42     spellplugin/kspellplugin.cpp 
43     widgets/domtreewidget.cpp 
44     widgets/findreplacebar.cpp
45     ${wk_HEADERS_MOC}
48 kconfig_add_kcfg_files(libcomposereditor_ng_SRCS
49    globalsettings_base.kcfgc 
53 ki18n_wrap_ui(libcomposereditor_ng_SRCS ui/pagecolorbackgroundwidget.ui )
56 add_library(composereditorng ${libcomposereditor_ng_SRCS})
57 generate_export_header(composereditorng BASE_NAME composereditorng)
59 target_link_libraries(composereditorng 
60    KF5::WebKit KF5::WebKit Qt5::WebKitWidgets KF5::PimTextEdit KF5::KDELibs4Support KF5::SonnetCore pimcommon
64 set_target_properties( composereditorng PROPERTIES VERSION ${KDEPIM_LIB_VERSION} SOVERSION ${KDEPIM_LIB_SOVERSION} )
65 install(TARGETS composereditorng ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
66 install( FILES data/composereditorinitialhtml DESTINATION  ${KDE_INSTALL_DATADIR}/composereditor )
68 #install( FILES
69 #         composereditorng_export.h
70 #         composereditor.h
71 #         DESTINATION ${KDE_INSTALL_INCLUDEDIR}/composereditorng COMPONENT Devel )