Salome HOME
Fix for the issue #593: do not remove naming attribute, but use TNaming_Builder for...
[modules/shaper.git] / src / ExchangePlugin / CMakeLists.txt
index 2440dd1292b8674ef2119d89e305a370505d7f45..3e649e1836854b1a582ff95c1a4c5a6f56875f4e 100644 (file)
@@ -1,6 +1,7 @@
 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
 INCLUDE(Common)
+INCLUDE(UnitTest)
 
 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/Events
                     ${PROJECT_SOURCE_DIR}/src/Config
@@ -16,6 +17,7 @@ SET(PROJECT_HEADERS
     ExchangePlugin_ImportFeature.h
     ExchangePlugin_ExportFeature.h
     ExchangePlugin_Validators.h
+    ExchangePlugin_Tools.h
 )
 
 SET(PROJECT_SOURCES
@@ -23,6 +25,7 @@ SET(PROJECT_SOURCES
     ExchangePlugin_ImportFeature.cpp
     ExchangePlugin_ExportFeature.cpp
     ExchangePlugin_Validators.cpp
+    ExchangePlugin_Tools.cpp
 )
 
 SET(XML_RESOURCES
@@ -44,3 +47,12 @@ TARGET_LINK_LIBRARIES(ExchangePlugin ${PROJECT_LIBRARIES})
 
 INSTALL(TARGETS ExchangePlugin DESTINATION plugins)
 INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins)
+
+ADD_UNIT_TESTS(TestImport.py TestExport.py)
+
+CONFIGURE_FILE(Test/Data/solid.brep Data/solid.brep COPYONLY)
+CONFIGURE_FILE(Test/Data/solid.brp Data/solid.brp COPYONLY)
+CONFIGURE_FILE(Test/Data/screw.step Data/screw.step COPYONLY)
+CONFIGURE_FILE(Test/Data/screw.stp Data/screw.stp COPYONLY)
+CONFIGURE_FILE(Test/Data/bearing.iges Data/bearing.iges COPYONLY)
+CONFIGURE_FILE(Test/Data/bearing.igs Data/bearing.igs COPYONLY)