kde-playground/kdepim/composereditor-ng/CMakeLists.txt
2015-09-25 11:03:31 +00:00

60 lines
2 KiB
CMake

set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}" )
add_definitions( -DQT_NO_CAST_FROM_ASCII )
add_definitions( -DQT_NO_CAST_TO_ASCII )
# Laurent install it if you want to debug it
#add_subdirectory(tests)
add_definitions(-DQT_STATICPLUGIN)
set(libcomposereditor_ng_SRCS
composereditor.cpp
composerview.cpp
link/composerlinkdialog.cpp
link/composeranchordialog.cpp
private/composerview_p.cpp
pagecolor/pagecolorbackgrounddialog.cpp
pagecolor/pagecolorbackgroundwidget.cpp
extendattributes/extendattributesdialog.cpp
extendattributes/extendattributesbutton.cpp
extendattributes/extendattributeswidget.cpp
extendattributes/extendattributesutils.cpp
utils/composereditorutils.cpp
image/composerimagedialog.cpp
image/composerimageresizewidget.cpp
table/composertabledialog.cpp
table/composertableresizewidget.cpp
table/composertableformatdialog.cpp
table/composertablecellformatdialog.cpp
table/composertableactionmenu.cpp
table/composercellsizewidget.cpp
image/composerimageresizetooltip.cpp
list/composerlistdialog.cpp
helper/tablehelper.cpp
helper/listhelper.cpp
spellplugin/kspellplugin.cpp
widgets/domtreewidget.cpp
widgets/findreplacebar.cpp
)
kde4_add_kcfg_files(libcomposereditor_ng_SRCS
globalsettings_base.kcfgc
)
add_library(composereditorng ${LIBRARY_TYPE} ${libcomposereditor_ng_SRCS})
target_link_libraries(composereditorng
${KDE4_KDEWEBKIT_LIBRARY} ${QT_QTWEBKIT_LIBRARY} ${KDEPIMLIBS_KPIMTEXTEDIT_LIBS} ${KDE4_KPRINTUTILS_LIBS}
)
set_target_properties( composereditorng PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
install(TARGETS composereditorng ${INSTALL_TARGETS_DEFAULT_ARGS} )
install( FILES data/composereditorinitialhtml DESTINATION ${DATA_INSTALL_DIR}/composereditor )
#install( FILES
# composereditor_export.h
# composereditor.h
# DESTINATION ${INCLUDE_INSTALL_DIR}/composereditorng COMPONENT Devel )