Salome HOME
Merge commit 'refs/tags/V9_2_0^{}'
[modules/shaper.git] / src / ConstructionPlugin / 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
24 SET(PROJECT_HEADERS
25     ConstructionPlugin.h
26     ConstructionPlugin_Plugin.h
27     ConstructionPlugin_Point.h
28     ConstructionPlugin_Axis.h
29     ConstructionPlugin_Plane.h
30     ConstructionPlugin_Validators.h
31 )
32
33 SET(PROJECT_SOURCES
34     ConstructionPlugin_Plugin.cpp
35     ConstructionPlugin_Point.cpp
36     ConstructionPlugin_Axis.cpp
37     ConstructionPlugin_Plane.cpp
38     ConstructionPlugin_Validators.cpp
39 )
40
41 SET(XML_RESOURCES
42   plugin-Construction.xml
43   point_widget.xml
44   axis_widget.xml
45   plane_widget.xml
46 )
47
48 SET(TEXT_RESOURCES
49   ConstructionPlugin_msg_en.ts
50 )
51
52 SET(PROJECT_LIBRARIES
53     Config
54     ModelAPI
55     GeomAPI
56     GeomAlgoAPI
57     GeomDataAPI
58 )
59
60 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
61
62 ADD_DEFINITIONS(-DCONSTRUCTIONPLUGIN_EXPORTS)
63 ADD_LIBRARY(ConstructionPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES})
64 TARGET_LINK_LIBRARIES(ConstructionPlugin ${PROJECT_LIBRARIES})
65
66 INSTALL(TARGETS ConstructionPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
67 INSTALL(FILES ${XML_RESOURCES} ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
68 INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Construction)
69
70 INCLUDE_DIRECTORIES(
71   ../Config
72   ../ModelAPI
73   ../GeomAPI
74   ../GeomAlgoAPI
75   ../Events
76   ../GeomDataAPI
77 )
78
79
80 ADD_UNIT_TESTS(TestAxisCreation.py
81                TestAxis_ErrorMsg.py
82                UnitTestAxis.py
83                TestPoint_XYZ.py
84                TestPoint_IntersectLines.py
85                TestPoint_IntersectLineAndPlane.py
86                TestPoint_IntersectPlanes.py
87                TestPoint_Edge.py
88                TestPoint_ProjectOnEdge.py
89                TestPoint_ProjectOnFace.py
90                TestPoint_GeometricalPropertyCenterOfGravity.py
91                TestPoint_GeometricalPropertyCenterOfCircle.py
92                TestPoint_VertexSelection.py
93                TestPointName.py
94                TestPoint_ErrorMsg.py
95                TestPoint_FiniteValidator.py
96                TestPlane.py
97                TestPlane_ErrorMsg.py
98                TestPlane_FaceValidator.py
99 )