forked from qt-creator/qt-creator
McuSupport: Enable tests with qbs build as well
Change-Id: I2f547e20234b6d31587241daadc7eedeecdc3e15 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -5,6 +5,7 @@ QtcPlugin {
|
||||
|
||||
Depends { name: "Qt.core" }
|
||||
Depends { name: "Qt.widgets" }
|
||||
Depends { name: "Qt.testlib"; condition: qtc.testsEnabled }
|
||||
Depends { name: "Utils" }
|
||||
|
||||
Depends { name: "Core" }
|
||||
@@ -14,6 +15,8 @@ QtcPlugin {
|
||||
Depends { name: "CMakeProjectManager" }
|
||||
Depends { name: "QtSupport" }
|
||||
|
||||
Depends { name: "qtc_gtest_gmock"; condition: qtc.testsEnabled; required: false }
|
||||
|
||||
files: [
|
||||
"mcuabstractpackage.h",
|
||||
"mcupackage.cpp",
|
||||
@@ -45,4 +48,20 @@ QtcPlugin {
|
||||
"mcukitinformation.cpp",
|
||||
"mcukitinformation.h"
|
||||
]
|
||||
|
||||
Group {
|
||||
name: "McuSupport test files"
|
||||
condition: qtc.testsEnabled && (qtc_gtest_gmock.hasRepo || qtc_gtest_gmock.externalLibsPresent)
|
||||
prefix: "test/"
|
||||
files: [
|
||||
"packagemock.h",
|
||||
"unittest.cpp", "unittest.h"
|
||||
]
|
||||
}
|
||||
|
||||
Properties {
|
||||
condition: qtc.testsEnabled && (qtc_gtest_gmock.hasRepo || qtc_gtest_gmock.externalLibsPresent)
|
||||
cpp.defines: base.concat(["GOOGLE_TEST_IS_FOUND"])
|
||||
cpp.includePaths: base.concat([ "." ])
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user