mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-31 10:47:07 +08:00
Remove RunCMake helpers from top-level repo
These test helpers are moved to qtbase submodule. Change-Id: If8aa31fe1d9a93f2667249abd90ae9b8cb81d07a Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commite552513c9f) (cherry picked from commitfaf67533c3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
committed by
Qt Cherry-pick Bot
parent
39a95bbd9a
commit
3068bcf3e2
@@ -3,15 +3,23 @@
|
||||
|
||||
set(top_repo_dir_path "${CMAKE_CURRENT_LIST_DIR}/../../..")
|
||||
get_filename_component(top_repo_dir_path "${top_repo_dir_path}" ABSOLUTE)
|
||||
if(NOT IS_DIRECTORY ${top_repo_dir_path}/qtbase/cmake/3rdparty/cmake)
|
||||
message(FATAL_ERROR
|
||||
"qtbase submodule is not initialized or it is missing the QtRunCMakeTestHelpers.\n"
|
||||
" Cannot run these tests without them."
|
||||
)
|
||||
endif()
|
||||
|
||||
macro(qt_ir_setup_test_include_paths)
|
||||
set(ir_script_path "${top_repo_dir_path}/cmake")
|
||||
list(APPEND CMAKE_MODULE_PATH
|
||||
"${ir_script_path}"
|
||||
"${ir_script_path}/3rdparty/cmake"
|
||||
"${top_repo_dir_path}/qtbase/cmake/3rdparty/cmake"
|
||||
)
|
||||
include(QtIRHelpers)
|
||||
qt_ir_include_all_helpers()
|
||||
# RunCMakeTestHelpers from qtbase/cmake/3rdparty/cmake
|
||||
include(QtRunCMakeTestHelpers)
|
||||
endmacro()
|
||||
qt_ir_setup_test_include_paths()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user