]> SALOME platform Git repositories - modules/shaper.git/blob - src/SamplePanelPlugin/CMakeLists.txt
Salome HOME
Improve code coverage for elliptic arcs.
[modules/shaper.git] / src / SamplePanelPlugin / CMakeLists.txt
1 # Copyright (C) 2014-2019  CEA/DEN, EDF R&D
2 #
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.
7 #
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.
12 #
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
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 INCLUDE(Common)
21 INCLUDE(UseQtExt)
22
23 # additional include directories
24 INCLUDE_DIRECTORIES(${QT_INCLUDES})
25
26 # additional preprocessor / compiler flags
27 ADD_DEFINITIONS(${QT_DEFINITIONS})
28
29 SET(PROJECT_HEADERS
30     SamplePanelPlugin.h
31     SamplePanelPlugin_Feature.h
32     SamplePanelPlugin_ModelWidget.h
33     SamplePanelPlugin_ModelWidgetCreator.h
34     SamplePanelPlugin_Panel.h
35     SamplePanelPlugin_Plugin.h
36     SamplePanelPlugin_WidgetCreator.h
37 )
38
39 SET(PROJECT_MOC_HEADERS
40     SamplePanelPlugin_ModelWidget.h
41     SamplePanelPlugin_Panel.h
42 )
43
44 SET(PROJECT_SOURCES
45     SamplePanelPlugin_Feature.cpp
46     SamplePanelPlugin_ModelWidget.cpp
47     SamplePanelPlugin_ModelWidgetCreator.cpp
48     SamplePanelPlugin_Panel.cpp
49     SamplePanelPlugin_Plugin.cpp
50     SamplePanelPlugin_WidgetCreator.cpp
51 )
52
53 SET(PROJECT_LIBRARIES
54     Config
55     Events
56     ModelAPI
57     ModuleBase
58     ${QT_LIBRARIES}
59 )
60
61 SET(XML_RESOURCES
62   plugin-SamplePanel.xml
63 )
64 # sources / moc wrappings
65 QT_WRAP_MOC(PROJECT_AUTOMOC ${PROJECT_MOC_HEADERS})
66
67 SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC})
68
69 ADD_DEFINITIONS(-DSAMPLEPANELPLUGIN_EXPORTS -DWNT)
70 ADD_LIBRARY(SamplePanelPlugin MODULE
71             ${PROJECT_SOURCES}
72             ${PROJECT_HEADERS}
73             ${XML_RESOURCES}
74             ${PROJECT_AUTOMOC})
75
76 TARGET_LINK_LIBRARIES(SamplePanelPlugin ${PROJECT_LIBRARIES})
77
78 INCLUDE_DIRECTORIES(
79   ${OpenCASCADE_INCLUDE_DIR}
80   ../Config
81   ../Events
82   ../ModelAPI
83   ../ModuleBase
84 )
85
86 INSTALL(TARGETS SamplePanelPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
87 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})