Property to control building unit tests.

This commit is contained in:
Roman Telezhynskyi 2023-01-09 11:47:42 +02:00
parent 2ba1a5db5e
commit 11642ebfe1
5 changed files with 7 additions and 0 deletions

View File

@ -9,6 +9,9 @@ Module {
property bool enableUbSanitizer: false
property bool enableThreadSanitizer: false
// Use this property to disable building unit tests.
property bool enableUnitTests: true
property string libDirName: "lib"
property string appTarget

View File

@ -12,6 +12,7 @@ VApp {
type: base.concat("autotest", "tst_files")
bundle.isBundle: false
install: false
condition: buildconfig.enableUnitTests
files: [
"qttestmainlambda.cpp",

View File

@ -9,6 +9,7 @@ VApp {
consoleApplication: true
bundle.isBundle: false
install: false
condition: buildconfig.enableUnitTests
files: [
"main.cpp"

View File

@ -11,6 +11,7 @@ VApp {
type: base.concat("autotest")
bundle.isBundle: false
install: false
condition: buildconfig.enableUnitTests
files: [
"qttestmainlambda.cpp",

View File

@ -14,6 +14,7 @@ VApp {
type: base.concat("autotest")
bundle.isBundle: false
install: false
condition: buildconfig.enableUnitTests
files: [
"qttestmainlambda.cpp",