aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2020-10-27 09:25:05 +0100
committerEike Ziller <eike.ziller@qt.io>2020-10-27 12:53:54 +0000
commit7ae976a8b9dbb6c0105526f23541baa6823973b6 (patch)
treee6034e1f79048ac0006d2ddbedd58be661031217 /cmake
parent0ebb004d8510b9c28fd0faab4f5ba53c490c28bd (diff)
cmake build: Use qtc_add_resources for StudioWelcome
Avoids creating resource file if plugin is disabled. Change-Id: Ia3e1a127c49cae4b03547367a78ca7dd8c3689f3 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtCreatorAPI.cmake13
1 files changed, 0 insertions, 13 deletions
diff --git a/cmake/QtCreatorAPI.cmake b/cmake/QtCreatorAPI.cmake
index 13d81a0a94..ccba5909d3 100644
--- a/cmake/QtCreatorAPI.cmake
+++ b/cmake/QtCreatorAPI.cmake
@@ -774,19 +774,6 @@ function(finalize_qtc_gtest test_name exclude_sources_regex)
endforeach()
endfunction()
-# This is the CMake equivalent of "RESOURCES = $$files()" from qmake
-function(qtc_glob_resources)
- cmake_parse_arguments(_arg "" "QRC_FILE;ROOT;GLOB" "" ${ARGN})
-
- file(GLOB_RECURSE fileList RELATIVE "${_arg_ROOT}" "${_arg_ROOT}/${_arg_GLOB}")
- set(qrcData "<RCC><qresource>\n")
- foreach(file IN LISTS fileList)
- string(APPEND qrcData " <file alias=\"${file}\">${_arg_ROOT}/${file}</file>\n")
- endforeach()
- string(APPEND qrcData "</qresource></RCC>")
- file(WRITE "${_arg_QRC_FILE}" "${qrcData}")
-endfunction()
-
function(qtc_copy_to_builddir custom_target_name)
cmake_parse_arguments(_arg "CREATE_SUBDIRS" "DESTINATION" "FILES;DIRECTORIES" ${ARGN})
set(timestampFiles)