1 # Copyright (C) 2014-2019 CEA/DEN, EDF R&D
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 # additional include directories
24 INCLUDE_DIRECTORIES(${QT_INCLUDES})
26 # additional preprocessor / compiler flags
27 ADD_DEFINITIONS(${QT_DEFINITIONS})
31 SamplePanelPlugin_Feature.h
32 SamplePanelPlugin_ModelWidget.h
33 SamplePanelPlugin_ModelWidgetCreator.h
34 SamplePanelPlugin_Panel.h
35 SamplePanelPlugin_Plugin.h
36 SamplePanelPlugin_WidgetCreator.h
39 SET(PROJECT_MOC_HEADERS
40 SamplePanelPlugin_ModelWidget.h
41 SamplePanelPlugin_Panel.h
45 SamplePanelPlugin_Feature.cpp
46 SamplePanelPlugin_ModelWidget.cpp
47 SamplePanelPlugin_ModelWidgetCreator.cpp
48 SamplePanelPlugin_Panel.cpp
49 SamplePanelPlugin_Plugin.cpp
50 SamplePanelPlugin_WidgetCreator.cpp
62 plugin-SamplePanel.xml
64 # sources / moc wrappings
65 QT_WRAP_MOC(PROJECT_AUTOMOC ${PROJECT_MOC_HEADERS})
67 SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC})
69 ADD_DEFINITIONS(-DSAMPLEPANELPLUGIN_EXPORTS -DWNT)
70 ADD_LIBRARY(SamplePanelPlugin MODULE
76 TARGET_LINK_LIBRARIES(SamplePanelPlugin ${PROJECT_LIBRARIES})
79 ${OpenCASCADE_INCLUDE_DIR}
86 INSTALL(TARGETS SamplePanelPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
87 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})