diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index de1885d..2277df0 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,107 +1,109 @@ ecm_create_qm_loader(kitemviews_QM_LOADER kitemviews5_qt) set(kitemviews_SRCS kcategorizedsortfilterproxymodel.cpp kcategorizedview.cpp kcategorydrawer.cpp kextendableitemdelegate.cpp kfilterproxysearchline.cpp klistwidgetsearchline.cpp ktreewidgetsearchline.cpp ktreewidgetsearchlinewidget.cpp kwidgetitemdelegate.cpp kwidgetitemdelegatepool.cpp ${kitemviews_QM_LOADER} ) add_library(KF5ItemViews ${kitemviews_SRCS}) generate_export_header(KF5ItemViews BASE_NAME KItemViews) add_library(KF5::ItemViews ALIAS KF5ItemViews) target_include_directories(KF5ItemViews INTERFACE "$") target_link_libraries(KF5ItemViews PUBLIC Qt5::Widgets) set_target_properties(KF5ItemViews PROPERTIES VERSION ${KITEMVIEWS_VERSION_STRING} SOVERSION ${KITEMVIEWS_SOVERSION} EXPORT_NAME ItemViews ) ecm_generate_headers(KItemViews_HEADERS HEADER_NAMES KCategorizedSortFilterProxyModel KCategorizedView KCategoryDrawer KExtendableItemDelegate KFilterProxySearchLine KListWidgetSearchLine KTreeWidgetSearchLine KTreeWidgetSearchLineWidget KWidgetItemDelegate REQUIRED_HEADERS KItemViews_HEADERS ) find_package(PythonModuleGeneration) if (PythonModuleGeneration_FOUND) ecm_generate_python_binding( TARGET KF5::ItemViews PYTHONNAMESPACE PyKF5 MODULENAME KItemViews SIP_DEPENDS QtWidgets/QtWidgetsmod.sip HEADERS kcategorizedsortfilterproxymodel.h kcategorizedview.h kcategorydrawer.h kextendableitemdelegate.h kfilterproxysearchline.h klistwidgetsearchline.h ktreewidgetsearchline.h ktreewidgetsearchlinewidget.h kwidgetitemdelegate.h ) endif() install(TARGETS KF5ItemViews EXPORT KF5ItemViewsTargets ${KF5_INSTALL_TARGETS_DEFAULT_ARGS}) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kitemviews_export.h ${KItemViews_HEADERS} DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/KItemViews COMPONENT Devel ) if(BUILD_DESIGNERPLUGIN) add_subdirectory(designer) endif() if(BUILD_QCH) ecm_add_qch( KF5ItemViews_QCH NAME KItemViews BASE_NAME KF5ItemViews VERSION ${KF5_VERSION} ORG_DOMAIN org.kde SOURCES # using only public headers, to cover only public API ${KItemViews_HEADERS} MD_MAINPAGE "${CMAKE_SOURCE_DIR}/README.md" LINK_QCHS Qt5Widgets_QCH Qt5Gui_QCH Qt5Core_QCH + INCLUDE_DIRS + ${CMAKE_CURRENT_BINARY_DIR} BLANK_MACROS KITEMVIEWS_EXPORT KITEMVIEWS_DEPRECATED KITEMVIEWS_DEPRECATED_EXPORT TAGFILE_INSTALL_DESTINATION ${KDE_INSTALL_QTQCHDIR} QCH_INSTALL_DESTINATION ${KDE_INSTALL_QTQCHDIR} COMPONENT Devel ) endif() include(ECMGeneratePriFile) ecm_generate_pri_file(BASE_NAME KItemViews LIB_NAME KF5ItemViews DEPS "widgets" FILENAME_VAR PRI_FILENAME INCLUDE_INSTALL_DIR ${KDE_INSTALL_INCLUDEDIR_KF5}/KItemViews) install(FILES ${PRI_FILENAME} DESTINATION ${ECM_MKSPECS_INSTALL_DIR})