| 1 |
if(BUILD_TESTING) |
| 2 |
add_subdirectory( tests ) |
| 3 |
endif() |
| 4 |
|
| 5 |
include_directories(${PLANODF_INCLUDES}) |
| 6 |
include_directories(${PLANWIDGETS_INCLUDE}) |
| 7 |
|
| 8 |
set(kowidgets_LIB_SRCS |
| 9 |
ParameterSubstitutionDialog.cpp |
| 10 |
KoResourcePaths.cpp |
| 11 |
KoVBox.cpp |
| 12 |
KoDialog.cpp |
| 13 |
KoGlobal.cpp |
| 14 |
KoPageLayoutDialog.cpp |
| 15 |
KoPageLayoutWidget.cpp |
| 16 |
KoPagePreviewWidget.cpp |
| 17 |
KoUnitDoubleSpinBox.cpp |
| 18 |
KoDpi.cpp |
| 19 |
KoDockWidgetTitleBar.cpp |
| 20 |
KoDockWidgetTitleBarButton.cpp |
| 21 |
KoDocumentInfoDlg.cpp |
| 22 |
WidgetsDebug.cpp |
| 23 |
) |
| 24 |
|
| 25 |
ki18n_wrap_ui( kowidgets_LIB_SRCS |
| 26 |
ParameterSubstitutionPanel.ui |
| 27 |
koDocumentInfoAboutWidget.ui |
| 28 |
koDocumentInfoAuthorWidget.ui |
| 29 |
|
| 30 |
KoPageLayoutWidget.ui |
| 31 |
) |
| 32 |
|
| 33 |
|
| 34 |
add_library(calligraplanwidgets SHARED ${kowidgets_LIB_SRCS}) |
| 35 |
generate_export_header(calligraplanwidgets BASE_NAME kowidgets) |
| 36 |
|
| 37 |
target_link_libraries(calligraplanwidgets |
| 38 |
PUBLIC |
| 39 |
calligraplanodf |
| 40 |
calligraplanwidgetutils |
| 41 |
KF6::KIOWidgets |
| 42 |
KF6::ConfigWidgets |
| 43 |
Qt::PrintSupport |
| 44 |
KF6::XmlGui |
| 45 |
PRIVATE |
| 46 |
KF6::GuiAddons |
| 47 |
KF6::WidgetsAddons |
| 48 |
KF6::ConfigCore |
| 49 |
# KF6::Codecs |
| 50 |
# KF6::Completion |
| 51 |
KF6::IconThemes |
| 52 |
KF6::I18n |
| 53 |
) |
| 54 |
|
| 55 |
if(GHNS) |
| 56 |
target_link_libraries(calligraplanwidgets PRIVATE KF6::NewStuff) |
| 57 |
endif () |
| 58 |
|
| 59 |
if(X11_FOUND) |
| 60 |
target_link_libraries(calligraplanwidgets PRIVATE ${X11_LIBRARIES}) |
| 61 |
endif() |
| 62 |
|
| 63 |
set_target_properties(calligraplanwidgets PROPERTIES |
| 64 |
VERSION ${GENERIC_PLAN_LIB_VERSION} SOVERSION ${GENERIC_PLAN_LIB_SOVERSION} |
| 65 |
) |
| 66 |
|
| 67 |
install(TARGETS calligraplanwidgets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) |
| 68 |
|