Warning, /utilities/alpaka/src/widgets/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2023 Laurent Montel <montel@kde.org 0002 # 0003 # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0004 0005 set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KLLMWidgets") 0006 0007 ecm_setup_version(PROJECT VARIABLE_PREFIX KLLMWIDGETS 0008 VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kllmwidgets_version.h" 0009 PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KLLMWidgetsConfigVersion.cmake" 0010 SOVERSION 0 0011 ) 0012 0013 add_library(KLLMWidgets) 0014 0015 set_target_properties(KLLMWidgets PROPERTIES 0016 VERSION ${KLLMWIDGETS_VERSION} 0017 SOVERSION ${KLLMWIDGETS_SOVERSION} 0018 EXPORT_NAME KLLMWidgets 0019 ) 0020 0021 target_sources(KLLMWidgets PRIVATE 0022 KLLMModelComboBox.h 0023 KLLMModelComboBox.cpp 0024 0025 KLLMActionMenu.h 0026 KLLMActionMenu.cpp 0027 0028 KLLMConfigureWidget.h 0029 KLLMConfigureWidget.cpp 0030 0031 KLLMConfigureDialog.h 0032 KLLMConfigureDialog.cpp 0033 0034 0035 KLLMResultWidget.h 0036 KLLMResultWidget.cpp 0037 ) 0038 0039 ecm_qt_declare_logging_category(KLLMWidgets HEADER kllmwidgets_debug.h IDENTIFIER KLLMWIDGETS_LOG CATEGORY_NAME org.kde.kllm.core 0040 DESCRIPTION "kllmwidgets" EXPORT KLLMWIDGETS) 0041 0042 generate_export_header(KLLMWidgets 0043 BASE_NAME kllmwidgets 0044 ) 0045 0046 target_link_libraries(KLLMWidgets 0047 KLLMCore 0048 Qt::Widgets 0049 KF6::XmlGui 0050 ) 0051 0052 set_target_properties(KLLMWidgets 0053 PROPERTIES OUTPUT_NAME kllmwidgets VERSION ${KLLMWIDGETS_VERSION} SOVERSION ${KLLMWIDGETS_SOVERSION} 0054 ) 0055 0056 install(TARGETS KLLMWidgets EXPORT KLLMWidgetsTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 0057 0058 ecm_generate_headers(kllmwidgets_Camelcase_HEADERS 0059 ORIGINAL CAMELCASE 0060 HEADER_NAMES 0061 KLLMModelComboBox 0062 KLLMActionMenu 0063 KLLMConfigureWidget 0064 KLLMConfigureDialog 0065 KLLMResultWidget 0066 0067 REQUIRED_HEADERS kllmwidgets_HEADERS 0068 PREFIX KLLMWidgets 0069 ) 0070 0071 install(FILES 0072 ${kllmwidgets_Camelcase_HEADERS} 0073 DESTINATION ${KDE_INSTALL_INCLUDEDIR}/KLLMWidgets 0074 COMPONENT Devel 0075 ) 0076 0077 install(FILES 0078 ${kllmwidgets_HEADERS} 0079 ${CMAKE_CURRENT_BINARY_DIR}/kllmwidgets_export.h 0080 DESTINATION ${KDE_INSTALL_INCLUDEDIR}/KLLMWidgets/kllmwidgets 0081 COMPONENT Devel 0082 ) 0083 0084 if (BUILD_QCH) 0085 ecm_add_qch( 0086 kllmwidgets_QCH 0087 NAME KLLM 0088 BASE_NAME KLLMWidgets 0089 VERSION ${KLLMWIDGETS_VERSION} 0090 ORG_DOMAIN org.kde 0091 SOURCES # using only public headers, to cover only public API 0092 ${kllmwidgets_Camelcase_HEADERS} 0093 MD_MAINPAGE "${CMAKE_SOURCE_DIR}/README.md" 0094 IMAGE_DIRS "${CMAKE_SOURCE_DIR}/docs/pics" 0095 LINK_QCHS 0096 Qt6Core_QCH 0097 Qt6Widgets_QCH 0098 INCLUDE_DIRS 0099 ${CMAKE_CURRENT_BINARY_DIR} 0100 BLANK_MACROS 0101 KLLMWIDGETS_EXPORT 0102 KLLMWIDGETS_DEPRECATED_EXPORT 0103 KLLMWIDGETS_DEPRECATED 0104 "KLLMWIDGETS_DEPRECATED_VERSION(x, y, t)" 0105 "KLLMWIDGETS_DEPRECATED_VERSION_BELATED(x, y, tx, ty, t)" 0106 "KLLMWIDGETS_ENUMERATOR_DEPRECATED_VERSION(x, y, t)" 0107 "KLLMWIDGETS_ENUMERATOR_DEPRECATED_VERSION_BELATED(x, y, tx, ty, t)" 0108 TAGFILE_INSTALL_DESTINATION ${KDE_INSTALL_QTQCHDIR} 0109 QCH_INSTALL_DESTINATION ${KDE_INSTALL_QTQCHDIR} 0110 COMPONENT Devel 0111 ) 0112 ecm_install_qch_export( 0113 TARGETS kllmwidgets_QCH 0114 FILE KLLMWidgetsQchTargets.cmake 0115 DESTINATION "${CMAKECONFIG_INSTALL_DIR}" 0116 COMPONENT Devel 0117 ) 0118 set(PACKAGE_INCLUDE_QCHTARGETS "include(\"\${CMAKE_CURRENT_LIST_DIR}/KLLMWidgetsQchTargets.cmake\")") 0119 0120 endif() 0121 0122 0123 configure_package_config_file( 0124 "${CMAKE_CURRENT_SOURCE_DIR}/KLLMWidgetsConfig.cmake.in" 0125 "${CMAKE_CURRENT_BINARY_DIR}/KLLMWidgetsConfig.cmake" 0126 INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR} 0127 ) 0128 0129 install(FILES 0130 "${CMAKE_CURRENT_BINARY_DIR}/KLLMWidgetsConfig.cmake" 0131 "${CMAKE_CURRENT_BINARY_DIR}/KLLMWidgetsConfigVersion.cmake" 0132 DESTINATION "${CMAKECONFIG_INSTALL_DIR}" 0133 COMPONENT Devel 0134 ) 0135 0136 install(EXPORT KLLMWidgetsTargets 0137 DESTINATION "${CMAKECONFIG_INSTALL_DIR}" 0138 FILE KLLMWidgetsTargets.cmake 0139 ) 0140 0141 if(BUILD_TESTING) 0142 add_subdirectory(tests) 0143 add_subdirectory(autotests) 0144 endif()