Warning, /office/kmymoney/kmymoney/templates/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 set (kmm_templates_SOURCES 0002 templateloader.cpp 0003 templatewriter.cpp 0004 kloadtemplatedlg.cpp 0005 ktemplateexportdlg.cpp 0006 ) 0007 0008 set(kmm_templates_UI 0009 kloadtemplatedlg.ui 0010 ktemplateexportdlg.ui 0011 ) 0012 0013 ki18n_wrap_ui(kmm_templates_SOURCES ${kmm_templates_UI} ) 0014 0015 # Generate templates.qrc file: 0016 set(qrcContents "<!-- This file was autogenerated by CMake. Do not modify or check it into the repository -->\n") 0017 string(APPEND qrcContents "<RCC>\n <qresource") 0018 string(APPEND qrcContents " prefix=\"/templates\"") 0019 string(APPEND qrcContents ">\n") 0020 0021 file(GLOB_RECURSE template_files 0022 LIST_DIRECTORIES=true 0023 RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" 0024 "C/*" "[a-z][a-z]/*" "[a-z][a-z]_[A-Z][A-Z]/*") 0025 0026 foreach(template_file ${template_files}) 0027 string(APPEND qrcContents " <file>${template_file}</file>\n") 0028 endforeach() 0029 string(APPEND qrcContents " </qresource>\n</RCC>\n") 0030 0031 file(WRITE "templates.qrc" "${qrcContents}") 0032 0033 # add generated file to resources 0034 qt5_add_resources(kmm_templates_SOURCES templates.qrc) 0035 0036 add_library(kmm_templates ${kmm_templates_SOURCES}) 0037 0038 # kmm_settings 0039 # KF5::KIOWidgets 0040 # KF5::Completion 0041 # KF5::Notifications 0042 # KF5::ItemViews 0043 # Qt::Gui 0044 # Qt::Core 0045 # Alkimia::alkimia 0046 # kmm_mymoney 0047 0048 0049 target_link_libraries(kmm_templates PUBLIC 0050 KF5::TextWidgets 0051 KF5::I18n 0052 kmm_models 0053 kmm_widgets 0054 ) 0055 0056 set_target_properties(kmm_templates PROPERTIES 0057 VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR} 0058 ) 0059 0060 generate_export_header(kmm_templates) 0061 0062 install(TARGETS kmm_templates ${INSTALL_TARGETS_DEFAULT_ARGS} ) 0063 0064 ########### test files ############### 0065 # 0066 # A simple testrun could be done like follows with a simple shell command: 0067 # 0068 # find -name \*.kmt -print0 | xargs --null xmllint --noout --dtdvalid kmt.dtd