summaryrefslogtreecommitdiff
path: root/media-gfx/freecad/files/freecad-9999-tests-src-Qt-only-build-test-for-BUILD_GUI-ON.patch
blob: 5455c0ee2992bf22e93611fc32b06d1b011897ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From cb77c7d937c259224699273fee1ba5907588fa4c Mon Sep 17 00:00:00 2001
From: Bernd Waibel <waebbl-gentoo@posteo.net>
Date: Sun, 12 Feb 2023 19:54:13 +0100
Subject: [PATCH] tests/src/Qt: only build test for BUILD_GUI=ON

Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
--- a/tests/src/Qt/CMakeLists.txt
+++ b/tests/src/Qt/CMakeLists.txt
@@ -30,6 +30,7 @@ endfunction()
 set(CMAKE_AUTOMOC ON)
 
 # Qt Test
+if(BUILD_GUI)
 include_directories(
     ${QtGui_INCLUDE_DIRS}
     ${QtTest_INCLUDE_DIRS}
@@ -46,3 +47,4 @@ set (InventorBuilder_LIBS
 SETUP_TESTS(
     InventorBuilder
 )
+endif()
-- 
2.39.1