Warning, /frameworks/ktexteditor/src/script/data/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # collect all files
0002 file(GLOB_RECURSE ALL_FILES
0003 RELATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR}
0004 "libraries/*.*"
0005 "commands/*.*"
0006 "indentation/*.*"
0007 "files/*.*")
0008
0009 # generate the resource file
0010
0011 set(INDEXFILE "")
0012 string(APPEND INDEXFILE "<!DOCTYPE RCC>\n")
0013 string(APPEND INDEXFILE "<RCC version=\"1.0\">\n")
0014 string(APPEND INDEXFILE "<qresource prefix=\"/ktexteditor/script\">\n")
0015 foreach(highlighter ${ALL_FILES})
0016 file(RELATIVE_PATH highlighter_base ${CMAKE_CURRENT_SOURCE_DIR} ${highlighter})
0017 string(APPEND INDEXFILE "<file alias=\"${highlighter_base}\">${highlighter}</file>\n")
0018 endforeach()
0019 string(APPEND INDEXFILE "</qresource>\n")
0020 string(APPEND INDEXFILE "</RCC>\n")
0021
0022 file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/script-tmp.qrc ${INDEXFILE})
0023 configure_file(${CMAKE_CURRENT_BINARY_DIR}/script-tmp.qrc
0024 ${CMAKE_CURRENT_BINARY_DIR}/script.qrc COPYONLY)