Salome HOME
In addition to the issue #608 remove OCCT includes from the plugins.
[modules/shaper.git] / src / ConstructionPlugin / CMakeLists.txt
1 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 INCLUDE(Common)
4 INCLUDE(UnitTest)
5
6 SET(PROJECT_HEADERS
7     ConstructionPlugin.h
8     ConstructionPlugin_Plugin.h
9     ConstructionPlugin_Point.h
10         ConstructionPlugin_Axis.h
11         ConstructionPlugin_Plane.h
12 )
13
14 SET(PROJECT_SOURCES
15     ConstructionPlugin_Plugin.cpp
16     ConstructionPlugin_Point.cpp
17         ConstructionPlugin_Axis.cpp
18         ConstructionPlugin_Plane.cpp
19 )
20
21 SET(XML_RESOURCES
22   plugin-Construction.xml
23   point_widget.xml
24   axis_widget.xml
25   plane_widget.xml
26 )
27
28 SET(PROJECT_LIBRARIES
29     Config
30     ModelAPI 
31     GeomAPI 
32     GeomAlgoAPI
33 )
34
35 ADD_DEFINITIONS(-DCONSTRUCTIONPLUGIN_EXPORTS)
36 ADD_LIBRARY(ConstructionPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
37 TARGET_LINK_LIBRARIES(ConstructionPlugin ${PROJECT_LIBRARIES})
38
39 INSTALL(TARGETS ConstructionPlugin DESTINATION plugins)
40 INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins)
41
42 INCLUDE_DIRECTORIES(
43   ../Config
44   ../ModelAPI
45   ../GeomAPI
46   ../GeomAlgoAPI
47 )
48
49
50 ADD_UNIT_TESTS(TestPointName.py
51               )