X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FCMakeLists.txt;h=20168aab632035aa96a53c5bccaee13af446b345;hb=3692e4ddfe1d709b235b6f1a8b96218ead1a45c5;hp=267c703a9c5f5160db59c157b4f30ccf0fe22a99;hpb=7b9662e1e63565ccfb95255f2b154d53357d091e;p=modules%2Fshaper.git diff --git a/src/GeomAPI/CMakeLists.txt b/src/GeomAPI/CMakeLists.txt index 267c703a9..20168aab6 100644 --- a/src/GeomAPI/CMakeLists.txt +++ b/src/GeomAPI/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 2014-2019 CEA/DEN, EDF R&D +# Copyright (C) 2014-2024 CEA, EDF # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -50,6 +50,7 @@ SET(PROJECT_HEADERS GeomAPI_Curve.h GeomAPI_DataMapOfShapeMapOfShapes.h GeomAPI_DataMapOfShapeShape.h + GeomAPI_IndexedMapOfShape.h GeomAPI_ICustomPrs.h GeomAPI_Vertex.h GeomAPI_Ax1.h @@ -70,6 +71,7 @@ SET(PROJECT_HEADERS GeomAPI_Torus.h GeomAPI_Box.h GeomAPI_WireExplorer.h + GeomAPI_ShapeHierarchy.h ) SET(PROJECT_SOURCES @@ -97,6 +99,7 @@ SET(PROJECT_SOURCES GeomAPI_Curve.cpp GeomAPI_DataMapOfShapeMapOfShapes.cpp GeomAPI_DataMapOfShapeShape.cpp + GeomAPI_IndexedMapOfShape.cpp GeomAPI_Vertex.cpp GeomAPI_ICustomPrs.cpp GeomAPI_Ax1.cpp @@ -118,6 +121,7 @@ SET(PROJECT_SOURCES GeomAPI_Torus.cpp GeomAPI_Box.cpp GeomAPI_WireExplorer.cpp + GeomAPI_ShapeHierarchy.cpp ) SET(PROJECT_LIBRARIES @@ -164,18 +168,23 @@ INSTALL(TARGETS _GeomAPI DESTINATION ${SHAPER_INSTALL_SWIG}) 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})