X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSetPlugin%2FCMakeLists.txt;h=60d6e8bca272761d4f3b701c3392177a332247ea;hb=0fdfafcdf2500a8e7e895fca953d7ebfb9126f16;hp=c27034c10ddd19dc4800fef8917a2da49f786138;hpb=1b6e67870beeeb667864eaff5b1bb9c1570b7259;p=modules%2Fshaper.git diff --git a/src/PartSetPlugin/CMakeLists.txt b/src/PartSetPlugin/CMakeLists.txt index c27034c10..60d6e8bca 100644 --- a/src/PartSetPlugin/CMakeLists.txt +++ b/src/PartSetPlugin/CMakeLists.txt @@ -1,24 +1,60 @@ +# Copyright (C) 2014-2023 CEA, EDF +# +# 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) SET(PROJECT_HEADERS PartSetPlugin.h PartSetPlugin_Plugin.h PartSetPlugin_Part.h - PartSetPlugin_Point.h + PartSetPlugin_Duplicate.h + PartSetPlugin_Remove.h ) SET(PROJECT_SOURCES - PartSetPlugin_Plugin.cxx - PartSetPlugin_Part.cxx - PartSetPlugin_Point.cxx + PartSetPlugin_Plugin.cpp + PartSetPlugin_Part.cpp + PartSetPlugin_Duplicate.cpp + PartSetPlugin_Remove.cpp +) + +SET(XML_RESOURCES + plugin-PartSet.xml ) -ADD_DEFINITIONS(-DPARTSETPLUGIN_EXPORTS ${BOOST_DEFINITIONS}) -ADD_LIBRARY(PartSetPlugin SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS}) +SET(TEXT_RESOURCES + PartSetPlugin_msg_fr.ts +) + +SOURCE_GROUP ("XML Files" FILES ${XML_RESOURCES}) +SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES}) + +ADD_DEFINITIONS(-DPARTSETPLUGIN_EXPORTS) +ADD_LIBRARY(PartSetPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES}) TARGET_LINK_LIBRARIES(PartSetPlugin ${PROJECT_LIBRARIES} ModelAPI) INCLUDE_DIRECTORIES( + ../Events ../ModelAPI + ../GeomAPI ) -INSTALL(TARGETS PartSetPlugin DESTINATION plugins) +INSTALL(TARGETS PartSetPlugin 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/PartSet)