]> SALOME platform Git repositories - modules/shaper.git/blob - src/ConstructionPlugin/CMakeLists.txt
Salome HOME
Merge branch 'Dev_0.6.1' of newgeom:newgeom into Dev_0.6.1
[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     ModelAPI 
30     GeomAPI 
31     GeomAlgoAPI
32     ${CAS_KERNEL}
33     ${CAS_SHAPE}
34 )
35
36 ADD_DEFINITIONS(-DCONSTRUCTIONPLUGIN_EXPORTS)
37 ADD_LIBRARY(ConstructionPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
38 TARGET_LINK_LIBRARIES(ConstructionPlugin ${PROJECT_LIBRARIES})
39
40 INSTALL(TARGETS ConstructionPlugin DESTINATION plugins)
41 INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins)
42
43 INCLUDE_DIRECTORIES(
44   ../ModelAPI
45   ../GeomAPI
46   ../GeomAlgoAPI
47 )
48
49
50 ADD_UNIT_TESTS(TestPointName.py
51               )