Salome HOME
Correct processing of the fixed arc in PlaneGCS (issue #1280)
[modules/shaper.git] / src / SketchShapePlugin / 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     SketchShapePlugin.h
8     SketchShapePlugin_Feature.h
9     SketchShapePlugin_PageGroupBox.h
10     SketchShapePlugin_Plugin.h
11     SketchShapePlugin_Validators.h
12     SketchShapePlugin_Tools.h
13     SketchShapePlugin_WidgetCheckGroupBox.h
14     SketchShapePlugin_WidgetCreator.h
15     SketchShapePlugin_WidgetMultiSelector.h
16 )
17
18 SET(PROJECT_SOURCES
19     SketchShapePlugin_Feature.cpp
20     SketchShapePlugin_PageGroupBox.cpp
21     SketchShapePlugin_Plugin.cpp
22     SketchShapePlugin_Validators.cpp
23     SketchShapePlugin_Tools.cpp
24     SketchShapePlugin_WidgetCheckGroupBox.cpp
25     SketchShapePlugin_WidgetCreator.cpp
26     SketchShapePlugin_WidgetMultiSelector.cpp
27 )
28
29 SET(PROJECT_LIBRARIES
30     Config
31     GeomAPI
32     GeomAlgoAPI
33     ModelAPI
34     GeomDataAPI
35     ModuleBase
36     ${QT_LIBRARIES}
37 )
38
39 SET(XML_RESOURCES
40   plugin-SketchShape.xml
41 )
42
43 ADD_DEFINITIONS(-DSKETCHSHAPEPLUGIN_EXPORTS -DWNT)
44 ADD_LIBRARY(SketchShapePlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
45 TARGET_LINK_LIBRARIES(SketchShapePlugin ${PROJECT_LIBRARIES})
46
47 INCLUDE_DIRECTORIES(
48   ../Config
49   ../Events
50   ../ModelAPI
51   ../GeomAPI
52   ../GeomAlgoAPI
53   ../GeomDataAPI
54   ../ModuleBase
55   ${SUIT_INCLUDE}
56   ${CAS_INCLUDE_DIRS}
57 )
58
59 INSTALL(TARGETS SketchShapePlugin DESTINATION plugins)
60 INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins)
61
62 ADD_UNIT_TESTS(TestSketchShape.py)