gentoo-ebuilds/media-gfx/openmesh/files/openmesh-11.0.0-tests_conditionnal.patch
Nicolas PARLANT ae72a44e4e
media-gfx/openmesh: add 11.0.0, qt6
update HOMEPAGE / SRC_URI (redirect)

iuse :
  qt6 -> gui
  add doc

deps :
  * media-libs/freeglut -> media-libs/libglvnd
  * test : add dev-cpp/eigen
  * doc, add :
      app-text/doxygen[dot]
      dev-texlive/texlive-latex
      dev-texlive/texlive-latexextra (for xcolor.sty)
      dev-texlive/texlive-latexrecommended (for newunicodechar.sty)

static-libs : set shared-libs only with a patch because previous sed-op
  is no longer sufficient.

Closes: https://bugs.gentoo.org/836649
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Closes: https://github.com/gentoo/gentoo/pull/41285
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-04-02 17:48:59 +02:00

27 lines
716 B
Diff

make tests conditional
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3aa8122..6d1bf51 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,8 +5,9 @@ cmake_minimum_required(VERSION 3.10.0 FATAL_ERROR)
#set( CMAKE_CXX_STANDARD_REQUIRED TRUE )
#set( CMAKE_CXX_STANDARD 11 )
-enable_testing()
-
+if(OPENMESH_BUILD_UNIT_TESTS)
+ enable_testing()
+endif()
project (OpenMesh
VERSION 11.0.0
@@ -118,7 +119,9 @@ endif()
# Do not build unit tests when build as external library
if(${CMAKE_PROJECT_NAME} MATCHES "OpenMesh")
+ if(OPENMESH_BUILD_UNIT_TESTS)
add_subdirectory (src/Unittests)
+ endif()
else()
# If built as a dependent project simulate effects of
# successful finder run: