Salome HOME
Merge branch 'Dev_1.1.0' of newgeom:newgeom into Dev_1.1.0
[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     ${CAS_KERNEL}
34     ${CAS_SHAPE}
35 )
36
37 ADD_DEFINITIONS(-DCONSTRUCTIONPLUGIN_EXPORTS)
38 ADD_LIBRARY(ConstructionPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
39 TARGET_LINK_LIBRARIES(ConstructionPlugin ${PROJECT_LIBRARIES})
40
41 INSTALL(TARGETS ConstructionPlugin DESTINATION plugins)
42 INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins)
43
44 INCLUDE_DIRECTORIES(
45   ../Config
46   ../ModelAPI
47   ../GeomAPI
48   ../GeomAlgoAPI
49 )
50
51
52 ADD_UNIT_TESTS(TestPointName.py
53               )