From: spo Date: Tue, 24 Nov 2015 12:18:04 +0000 (+0300) Subject: Improve ExchangePlugin CMakeLists.txt X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0d06ac29b3e3f482369aea9eac71298a4e0b2034;p=modules%2Fshaper.git Improve ExchangePlugin CMakeLists.txt --- diff --git a/src/ExchangePlugin/CMakeLists.txt b/src/ExchangePlugin/CMakeLists.txt index 2528e4bb3..fcd6aa97a 100644 --- a/src/ExchangePlugin/CMakeLists.txt +++ b/src/ExchangePlugin/CMakeLists.txt @@ -3,33 +3,34 @@ INCLUDE(Common) INCLUDE(UnitTest) -INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/Events - ${PROJECT_SOURCE_DIR}/src/Config - ${PROJECT_SOURCE_DIR}/src/ModelAPI - ${PROJECT_SOURCE_DIR}/src/GeomAPI - ${PROJECT_SOURCE_DIR}/src/GeomAlgoAPI -) +INCLUDE_DIRECTORIES( + ${PROJECT_SOURCE_DIR}/src/Events + ${PROJECT_SOURCE_DIR}/src/Config + ${PROJECT_SOURCE_DIR}/src/ModelAPI + ${PROJECT_SOURCE_DIR}/src/GeomAPI + ${PROJECT_SOURCE_DIR}/src/GeomAlgoAPI + ) SET(PROJECT_HEADERS - ExchangePlugin.h - ExchangePlugin_Plugin.h - ExchangePlugin_ImportFeature.h - ExchangePlugin_ExportFeature.h - ExchangePlugin_Validators.h - ExchangePlugin_Tools.h -) + ExchangePlugin.h + ExchangePlugin_Plugin.h + ExchangePlugin_ImportFeature.h + ExchangePlugin_ExportFeature.h + ExchangePlugin_Validators.h + ExchangePlugin_Tools.h + ) SET(PROJECT_SOURCES - ExchangePlugin_Plugin.cpp - ExchangePlugin_ImportFeature.cpp - ExchangePlugin_ExportFeature.cpp - ExchangePlugin_Validators.cpp - ExchangePlugin_Tools.cpp -) + ExchangePlugin_Plugin.cpp + ExchangePlugin_ImportFeature.cpp + ExchangePlugin_ExportFeature.cpp + ExchangePlugin_Validators.cpp + ExchangePlugin_Tools.cpp + ) SET(XML_RESOURCES - plugin-Exchange.xml -) + plugin-Exchange.xml + ) SET(TEXT_RESOURCES ExchangePlugin_msg_en.ts @@ -54,11 +55,23 @@ INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}) INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Exchange) INSTALL(FILES ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}) -ADD_UNIT_TESTS(TestImport.py TestExport.py) +ADD_UNIT_TESTS( + TestImport.py + TestExport.py + ) + +SET(DATA_FILES + solid.brep + solid.brp + screw.step + screw.stp + bearing.iges + bearing.igs + ) -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) +FOREACH(file ${DATA_FILES}) + CONFIGURE_FILE( + ${CMAKE_CURRENT_SOURCE_DIR}/Test/Data/${file} + ${CMAKE_CURRENT_BINARY_DIR}/Data/${file} + COPYONLY) +ENDFOREACH(file ${DATA_FIELS})