Salome HOME
f374cc0e6c9961951dc1b8c2330dd30266572678
[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 )
58
59 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
60
61 ADD_DEFINITIONS(-DCONSTRUCTIONPLUGIN_EXPORTS)
62 ADD_LIBRARY(ConstructionPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES})
63 TARGET_LINK_LIBRARIES(ConstructionPlugin ${PROJECT_LIBRARIES})
64
65 INSTALL(TARGETS ConstructionPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
66 INSTALL(FILES ${XML_RESOURCES} ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
67 INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Construction)
68
69 INCLUDE_DIRECTORIES(
70   ../Config
71   ../ModelAPI
72   ../GeomAPI
73   ../GeomAlgoAPI
74   ../Events
75 )
76
77
78 ADD_UNIT_TESTS(TestAxisCreation.py
79                UnitTestAxis.py
80                TestPoint_XYZ.py
81                TestPoint_LineAndPlane.py
82                TestPoint_Edge.py
83                TestPoint_ProjectOnFace.py
84                TestPointName.py
85                TestPlane.py)