X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FBuildPlugin%2FCMakeLists.txt;h=1b845101db9bdb6be7a2eacd57b69fa143f84c07;hb=4656ef7be2170488c06dbc0586f71348be93b5fb;hp=1d1bf847c3e963a26d1c39f3f9229e4d569aa4c6;hpb=3c987a8d1b88765224e3ac1388afb91eae17e4d3;p=modules%2Fshaper.git diff --git a/src/BuildPlugin/CMakeLists.txt b/src/BuildPlugin/CMakeLists.txt index 1d1bf847c..1b845101d 100644 --- a/src/BuildPlugin/CMakeLists.txt +++ b/src/BuildPlugin/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 2014-2019 CEA/DEN, EDF R&D +# Copyright (C) 2014-2022 CEA/DEN, EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -23,9 +23,15 @@ INCLUDE(UnitTest) INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/Events ${PROJECT_SOURCE_DIR}/src/Config ${PROJECT_SOURCE_DIR}/src/ModelAPI + ${PROJECT_SOURCE_DIR}/src/Locale ${PROJECT_SOURCE_DIR}/src/GeomAPI ${PROJECT_SOURCE_DIR}/src/GeomAlgoAPI + ${PROJECT_SOURCE_DIR}/src/GeomDataAPI ${PROJECT_SOURCE_DIR}/src/GeomValidators + ${PROJECT_SOURCE_DIR}/src/SketchPlugin + ${PROJECT_SOURCE_DIR}/src/InitializationPlugin + ${SUIT_INCLUDE} + ${PYTHON_INCLUDE_DIR} ) SET(PROJECT_HEADERS @@ -86,6 +92,7 @@ SET(TEXT_RESOURCES BuildPlugin_msg_fr.ts ) +SOURCE_GROUP ("XML Files" FILES ${XML_RESOURCES}) SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES}) SET(PROJECT_LIBRARIES @@ -95,6 +102,8 @@ SET(PROJECT_LIBRARIES GeomAPI GeomAlgoAPI GeomValidators + ${PyInterp} + ${PYTHON_LIBRARIES} ) ADD_DEFINITIONS(-DBUILDPLUGIN_EXPORTS) @@ -106,35 +115,23 @@ INSTALL(TARGETS BuildPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES}) INSTALL(FILES ${XML_RESOURCES} ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}) INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Build) -ADD_UNIT_TESTS(TestVertex.py - TestVertex_ErrorMsg.py - TestEdge.py - TestEdge_ByPoints.py - TestEdge_ErrorMsg.py - TestWire.py - TestWire_ErrorMsg.py - TestPolyline.py - TestInterpolation.py - TestFace.py - TestFace_ErrorMsg.py - TestShell.py - TestSolid.py - TestSolid_ErrorMsg.py - TestCompSolid.py - TestCompound.py - TestCompound_ErrorMsg.py - TestCompound_History.py - TestSubShapes.py - TestSubShapes_ErrorMsg.py - TestFilling.py - TestFilling_ByEdges.py - TestFilling_ByWires.py - TestFilling_Mixed.py - TestFilling_ErrorMsg.py - Test1920.py - Test2398.py - Test2409.py - Test2415.py - Test2439.py - Test2454.py -) +include(tests.set) + +ADD_UNIT_TESTS(${TEST_NAMES}) + +if(${HAVE_SALOME}) + enable_testing() + set(TEST_INSTALL_DIRECTORY "${SALOME_SHAPER_INSTALL_TESTS}/BuildPlugin") + + 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})