]> SALOME platform Git repositories - modules/shaper.git/blob - src/ConstructionPlugin/CMakeLists.txt
Salome HOME
Issue #1309 Management of icons - icons are moved into corresponded plugins. The...
[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 SET(ICON_RESOURCES
36   icons/axis.png
37   icons/by_two_points_32x32.png
38   icons/circle.png
39   icons/cylindrical_face_32x32.png
40   icons/plane.png
41   icons/point.png
42 )
43
44 ADD_DEFINITIONS(-DCONSTRUCTIONPLUGIN_EXPORTS)
45 ADD_LIBRARY(ConstructionPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
46 TARGET_LINK_LIBRARIES(ConstructionPlugin ${PROJECT_LIBRARIES})
47
48 INSTALL(TARGETS ConstructionPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
49 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
50 INSTALL(FILES ${ICON_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Construction)
51
52 INCLUDE_DIRECTORIES(
53   ../Config
54   ../ModelAPI
55   ../GeomAPI
56   ../GeomAlgoAPI
57 )
58
59
60 ADD_UNIT_TESTS(TestAxisCreation.py
61                TestPointName.py)