Salome HOME
Unit test for moving group after BuildPlugin_Face feature
[modules/shaper.git] / src / CollectionPlugin / 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(UnitTest)
23 INCLUDE(UseQtExt)
24
25 # additional include directories
26 INCLUDE_DIRECTORIES(${QT_INCLUDES})
27
28 # additional preprocessor / compiler flags
29 ADD_DEFINITIONS(${QT_DEFINITIONS})
30
31 SET(PROJECT_HEADERS
32     CollectionPlugin.h
33     CollectionPlugin_Plugin.h
34     CollectionPlugin_Group.h
35     CollectionPlugin_Field.h
36     CollectionPlugin_WidgetCreator.h
37     CollectionPlugin_WidgetField.h
38     CollectionPlugin_Validators.h
39 )
40
41 SET(PROJECT_MOC_HEADERS
42     CollectionPlugin_WidgetField.h
43 )
44
45 SET(PROJECT_SOURCES
46     CollectionPlugin_Plugin.cpp
47     CollectionPlugin_Group.cpp
48     CollectionPlugin_Field.cpp
49     CollectionPlugin_WidgetCreator.cpp
50     CollectionPlugin_WidgetField.cpp
51     CollectionPlugin_Validators.cpp
52 )
53
54 SET(XML_RESOURCES
55   plugin-Collection.xml
56   group_widget.xml
57 )
58
59 SET(TEXT_RESOURCES
60     CollectionPlugin_msg_en.ts
61 )
62
63 # sources / moc wrappings
64 QT_WRAP_MOC(PROJECT_AUTOMOC ${PROJECT_MOC_HEADERS})
65
66 #QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES})
67
68 SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES} ${QM_RESOURCES})
69 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
70
71
72 INCLUDE_DIRECTORIES(
73   ../ModelAPI
74   ../GeomAPI
75   ../GeomAlgoAPI
76   ../GeomValidators
77   ../Events
78   ../ModuleBase
79   ../Config
80   ${OpenCASCADE_INCLUDE_DIR}
81 )
82
83 SET(PROJECT_LIBRARIES
84     Events
85     ModelAPI
86     GeomAPI
87     GeomAlgoAPI
88     GeomValidators
89     ModuleBase
90 )
91
92 ADD_DEFINITIONS(-DCOLLECTIONPLUGIN_EXPORTS ${OpenCASCADE_DEFINITIONS})
93 ADD_LIBRARY(CollectionPlugin MODULE
94             ${PROJECT_SOURCES}
95             ${PROJECT_HEADERS}
96             ${XML_RESOURCES}
97             ${TEXT_RESOURCES}
98             ${PROJECT_AUTOMOC})
99 TARGET_LINK_LIBRARIES(CollectionPlugin ${PROJECT_LIBRARIES})
100
101 INSTALL(TARGETS CollectionPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
102 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
103 INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Collection)
104 INSTALL(FILES ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
105
106 ADD_UNIT_TESTS(
107                TestGroup.py
108                TestGroup2.py
109                TestField.py
110                TestGroup1799.py
111                TestGroupMove01.py
112                TestGroupMove02.py
113                TestGroupMove03.py
114                TestGroupMove04.py
115                TestGroupMove05.py
116                TestGroupMove06.py
117                TestGroupMove07.py
118                TestGroupMove08.py
119                TestGroupMove09.py
120                TestGroupMove10.py
121                TestGroupMove11.py
122                TestGroupMove12.py
123                TestGroupMove13.py
124                TestGroupMove14.py
125                TestGroupMove15.py
126                TestGroupMove16.py
127                TestGroupMove17.py
128                TestGroupMove18.py
129                TestGroupMove19.py
130                TestGroupShareTopology.py
131 )