git: dcf0ee82f227 - main - math/openmesh: Add tests

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 11 Oct 2022 09:03:43 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=dcf0ee82f2274c862d17070d42a01aa6167a07ce

commit dcf0ee82f2274c862d17070d42a01aa6167a07ce
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-10-11 07:54:48 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-10-11 09:03:39 +0000

    math/openmesh: Add tests
---
 math/openmesh/Makefile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/math/openmesh/Makefile b/math/openmesh/Makefile
index 1049d010dfd7..ecf49a956246 100644
--- a/math/openmesh/Makefile
+++ b/math/openmesh/Makefile
@@ -11,16 +11,21 @@ WWW=		https://www.openmesh.org/
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USES=		cmake compiler:c++11-lang dos2unix gl qt:5 xorg
-DOS2UNIX_FILES=	src/OpenMesh/Tools/CMakeLists.txt
+TEST_DEPENDS=	googletest>0:devel/googletest
+
+USES=		cmake:testing compiler:c++11-lang dos2unix gl qt:5 xorg
 USE_QT=		core concurrent gui help network opengl printsupport script scripttools sql svg x11extras xml xmlpatterns webkit widgets \
 		buildtools:build qmake:build uitools:build
 USE_GL=		gl glu glut
 USE_XORG=	xi xmu
 USE_LDCONFIG=	yes
 
+DOS2UNIX_FILES=	src/OpenMesh/Tools/CMakeLists.txt
+
 WRKSRC=		${WRKDIR}/OpenMesh-${DISTVERSION}.0
 
+CMAKE_TESTING_ON=	OPENMESH_BUILD_UNIT_TESTS
+
 post-install:
 	@${RMDIR} ${STAGEDIR}${PREFIX}/include/OpenMesh/Tools/VDPM/xpm