X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FCMakeLists.txt;h=222f2e6eaea1ac3bea1cbbb0aa44e8d0b8465cd8;hb=d1abc3e2fa3772350ca56e2714050a3e7e7a92cb;hp=ef96dbd6cb778633c06ab3072791713882e1309f;hpb=7bf19255421b34594c7b0a76d0ce28166d0ce895;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/CMakeLists.txt b/src/ExchangePlugin/CMakeLists.txt index ef96dbd6c..222f2e6ea 100644 --- a/src/ExchangePlugin/CMakeLists.txt +++ b/src/ExchangePlugin/CMakeLists.txt @@ -1,47 +1,88 @@ -## Copyright (C) 2014-20xx CEA/DEN, EDF R&D +# Copyright (C) 2014-2019 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 +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# 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/ModelHighAPI ${PROJECT_SOURCE_DIR}/src/GeomAPI ${PROJECT_SOURCE_DIR}/src/GeomAlgoAPI - ${CAS_INCLUDE_DIRS} -) + ${PROJECT_SOURCE_DIR}/src/XAO +) SET(PROJECT_HEADERS ExchangePlugin.h ExchangePlugin_Plugin.h ExchangePlugin_ImportFeature.h + ExchangePlugin_ExportFeature.h ExchangePlugin_Validators.h + ExchangePlugin_Tools.h + ExchangePlugin_Dump.h ) - + SET(PROJECT_SOURCES ExchangePlugin_Plugin.cpp ExchangePlugin_ImportFeature.cpp + ExchangePlugin_ExportFeature.cpp ExchangePlugin_Validators.cpp + ExchangePlugin_Tools.cpp + ExchangePlugin_Dump.cpp ) SET(XML_RESOURCES + export_widget.xml plugin-Exchange.xml ) +SET(TEXT_RESOURCES + ExchangePlugin_msg_en.ts +) + SET(PROJECT_LIBRARIES Events - ModelAPI Config + ModelAPI + ModelHighAPI GeomAPI - ${CAS_OCAF} - ${CAS_TKCAF} - ${CAS_SHAPE} - ${CAS_TKBO} + GeomAlgoAPI + XAOShaper ) +SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES}) -ADD_DEFINITIONS(-DEXCHANGEPLUGIN_EXPORTS ${CAS_DEFINITIONS}) -ADD_LIBRARY(ExchangePlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES}) +ADD_DEFINITIONS(-DEXCHANGEPLUGIN_EXPORTS) +ADD_LIBRARY(ExchangePlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES}) TARGET_LINK_LIBRARIES(ExchangePlugin ${PROJECT_LIBRARIES}) -INSTALL(TARGETS ExchangePlugin DESTINATION plugins) -INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins) +INSTALL(TARGETS ExchangePlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES}) +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 + Test2290.py + Test2459.py + TestExportToXAOWithFields.py + TestExportToXAOWithGroupNotUpdated.py + TestExport_FiniteValidator.py +)