diff options
author | Kevin Funk <kevin.funk@kdab.com> | 2019-05-03 14:46:29 +0200 |
---|---|---|
committer | Kevin Funk <kevin.funk@kdab.com> | 2019-05-03 12:49:37 +0000 |
commit | d8cdbc4f97b030e8ae93fa63f6a4b5fa7a56c4e8 (patch) | |
tree | 75eb958d7683ec86b687abdd252486c3d445e287 /cmake | |
parent | 753d35cd56184a699288578cd728d17f8798088d (diff) |
cmake: Make add_qt_executable work
Also needs the include/ from the top-level binary dir added to the
include path.
Change-Id: I7e0d82a2ee24d9bf9ffe9da5fd02b3b223fd48e7
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/QtBuild.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
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}" + $<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/include> "${arg_INCLUDE_DIRECTORIES}" DEFINES "${arg_DEFINES}" LIBRARIES ${QT_CMAKE_EXPORT_NAMESPACE}::Core ${QT_CMAKE_EXPORT_NAMESPACE}::Test ${arg_LIBRARIES} |