44cce1a2ea
QtBuild.cmake is huge. Split it. Move module, plugin, tools, executables and test related functions out of QtBuild.cmake into separate files. Do the same for many other things too. An additional requirement is that all the new Helpers files only define functions and macros. No global variable definitions are allowed, nor execution of commands with side effects. Some notes: qt_install_qml_files is removed because it's dead code. Some functions still need to be figured out, because they are interspersed and depend on various global state assignments. Task-number: QTBUG-86035 Change-Id: I21d79ff02eef923c202eb1000422888727cb0e2c Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
53 lines
984 B
CMake
53 lines
984 B
CMake
# Compatibility macros that should be removed once all their usages are removed.
|
|
function(extend_target)
|
|
qt_extend_target(${ARGV})
|
|
endfunction()
|
|
|
|
function(add_qt_module)
|
|
qt_add_module(${ARGV})
|
|
endfunction()
|
|
|
|
function(add_qt_plugin)
|
|
qt_add_plugin(${ARGV})
|
|
endfunction()
|
|
|
|
function(add_qt_tool)
|
|
qt_add_tool(${ARGV})
|
|
endfunction()
|
|
|
|
function(add_qt_test)
|
|
qt_add_test(${ARGV})
|
|
endfunction()
|
|
|
|
function(add_qt_test_helper)
|
|
qt_add_test_helper(${ARGV})
|
|
endfunction()
|
|
|
|
function(add_qt_manual_test)
|
|
qt_add_manual_test(${ARGV})
|
|
endfunction()
|
|
|
|
function(add_qt_benchmark)
|
|
qt_add_benchmark(${ARGV})
|
|
endfunction()
|
|
|
|
function(add_qt_executable)
|
|
qt_add_executable(${ARGV})
|
|
endfunction()
|
|
|
|
function(add_qt_simd_part)
|
|
qt_add_simd_part(${ARGV})
|
|
endfunction()
|
|
|
|
function(add_qt_docs)
|
|
qt_add_docs(${ARGV})
|
|
endfunction()
|
|
|
|
function(add_qt_resource)
|
|
qt_add_resource(${ARGV})
|
|
endfunction()
|
|
|
|
function(add_cmake_library)
|
|
qt_add_cmake_library(${ARGV})
|
|
endfunction()
|