-# Copyright (C) 2014-2019 CEA/DEN, EDF R&D
+# Copyright (C) 2014-2023 CEA, EDF
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
GeomAPI_Torus.h
GeomAPI_Box.h
GeomAPI_WireExplorer.h
+ GeomAPI_ShapeHierarchy.h
)
SET(PROJECT_SOURCES
GeomAPI_Torus.cpp
GeomAPI_Box.cpp
GeomAPI_WireExplorer.cpp
+ GeomAPI_ShapeHierarchy.cpp
)
SET(PROJECT_LIBRARIES
INSTALL(TARGETS GeomAPI DESTINATION ${SHAPER_INSTALL_BIN})
INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION ${SHAPER_INSTALL_SWIG})
-ADD_UNIT_TESTS(
- TestAx123.py
- TestBox.py
- TestBuilders.py
- TestCone.py
- TestCylinder.py
- TestEllipse2d.py
- TestLine.py
- TestPlanarEdge.py
- TestPolygon.py
- TestSphere.py
- TestTorus.py
- Test2675.py
- Test2879.py
-)
+include(tests.set)
+
+ADD_UNIT_TESTS(${TEST_NAMES})
+
+if(${HAVE_SALOME})
+ enable_testing()
+ set(TEST_INSTALL_DIRECTORY "${SALOME_SHAPER_INSTALL_TESTS}/GeomAPI")
+
+ install(FILES CTestTestfileInstall.cmake
+ DESTINATION ${TEST_INSTALL_DIRECTORY}
+ RENAME CTestTestfile.cmake)
+ install(FILES tests.set DESTINATION ${TEST_INSTALL_DIRECTORY})
+
+ set(TMP_TESTS_NAMES)
+ foreach(tfile ${TEST_NAMES})
+ list(APPEND TMP_TESTS_NAMES "Test/${tfile}")
+ endforeach(tfile ${TEST_NAMES})
+
+ install(FILES ${TMP_TESTS_NAMES} DESTINATION ${TEST_INSTALL_DIRECTORY})
+endif(${HAVE_SALOME})