diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake index 78251c9054..059b0c82fc 100644 --- a/cmake/QtBuild.cmake +++ b/cmake/QtBuild.cmake @@ -996,6 +996,7 @@ function(add_qt_test name) INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_BINARY_DIR}" + $ "${arg_INCLUDE_DIRECTORIES}" DEFINES "${arg_DEFINES}" LIBRARIES ${QT_CMAKE_EXPORT_NAMESPACE}::Core ${QT_CMAKE_EXPORT_NAMESPACE}::Test ${arg_LIBRARIES}