Warning, /frameworks/ktexttemplate/examples/books/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 cmake_minimum_required(VERSION 3.5) 0002 0003 project(books_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 find_package(Qt6Widgets REQUIRED) 0020 find_package(Qt6Sql REQUIRED) 0021 0022 add_executable(books 0023 main.cpp 0024 bookwindow.cpp 0025 bookwrapper.cpp 0026 bookdelegate.cpp 0027 books.qrc 0028 ) 0029 0030 target_link_libraries(books 0031 KF6::TextTemplate 0032 Qt6::Widgets 0033 Qt6::Sql 0034 )