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