Warning, /frameworks/ktexttemplate/examples/codegen/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 cmake_minimum_required(VERSION 3.5) 0002 0003 project(codegen_ktexttemplate) 0004 0005 find_package(KF6TextTemplate REQUIRED) 0006 0007 set(CMAKE_INCLUDE_CURRENT_DIR ON) 0008 set(CMAKE_AUTOMOC ON) 0009 set(CMAKE_AUTOUIC ON) 0010 set(CMAKE_AUTORCC ON) 0011 0012 get_property(KTextTemplate_PLUGIN_DIR TARGET KF6::defaulttags PROPERTY LOCATION) 0013 get_filename_component(KTextTemplate_PLUGIN_DIR ${KTextTemplate_PLUGIN_DIR} PATH) 0014 get_filename_component(KTextTemplate_PLUGIN_DIR ${KTextTemplate_PLUGIN_DIR} PATH) 0015 get_filename_component(KTextTemplate_PLUGIN_DIR ${KTextTemplate_PLUGIN_DIR} PATH) 0016 0017 configure_file(ktexttemplate_paths.h.cmake ${PROJECT_BINARY_DIR}/ktexttemplate_paths.h) 0018 0019 qt6_add_resources( 0020 codegen_example_RCS_SRCS 0021 custom_tags.qrc 0022 OPTIONS -root "/plugins/kf6/ktexttemplate/" 0023 ) 0024 0025 add_executable(codegen 0026 codegen.qrc 0027 comboboxdelegate.cpp 0028 main.cpp 0029 methodmodel.cpp 0030 codegentableview.cpp 0031 designwidget.cpp 0032 propertytablewidget.cpp 0033 mainwindow.cpp 0034 ${codegen_example_RCS_SRCS} 0035 ) 0036 target_compile_definitions(codegen PRIVATE QT_DISABLE_DEPRECATED_BEFORE=0) 0037 0038 find_package(Qt6Widgets REQUIRED) 0039 0040 target_link_libraries( 0041 codegen 0042 KF6::TextTemplate 0043 Qt6::Widgets 0044 )