]> SALOME platform Git repositories - modules/shaper.git/blob - src/BuildPlugin/CMakeLists.txt
Salome HOME
Tests for Build plug-in features.
[modules/shaper.git] / src / BuildPlugin / CMakeLists.txt
1 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 INCLUDE(Common)
4 INCLUDE(UnitTest)
5
6 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/Events
7                     ${PROJECT_SOURCE_DIR}/src/Config
8                     ${PROJECT_SOURCE_DIR}/src/ModelAPI
9                     ${PROJECT_SOURCE_DIR}/src/GeomAPI
10                     ${PROJECT_SOURCE_DIR}/src/GeomAlgoAPI
11                     ${PROJECT_SOURCE_DIR}/src/GeomValidators
12 )
13
14 SET(PROJECT_HEADERS
15     BuildPlugin.h
16     BuildPlugin_Plugin.h
17     BuildPlugin_Vertex.h
18     BuildPlugin_Edge.h
19     BuildPlugin_Wire.h
20     BuildPlugin_Face.h
21     BuildPlugin_Shell.h
22     BuildPlugin_SubShapes.h
23     BuildPlugin_Validators.h
24 )
25
26 SET(PROJECT_SOURCES
27     BuildPlugin_Plugin.cpp
28     BuildPlugin_Vertex.cpp
29     BuildPlugin_Edge.cpp
30     BuildPlugin_Wire.cpp
31     BuildPlugin_Face.cpp
32     BuildPlugin_Shell.cpp
33     BuildPlugin_SubShapes.cpp
34     BuildPlugin_Validators.cpp
35 )
36
37 SET(XML_RESOURCES
38     plugin-Build.xml
39     vertex_widget.xml
40     edge_widget.xml
41     wire_widget.xml
42     face_widget.xml
43     shell_widget.xml
44     subshapes_widget.xml
45 )
46
47 SET(PROJECT_LIBRARIES
48     Events
49     Config
50     ModelAPI
51     GeomAPI
52     GeomAlgoAPI
53     GeomValidators
54 )
55
56 ADD_DEFINITIONS(-DBUILDPLUGIN_EXPORTS)
57 ADD_LIBRARY(BuildPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
58
59 TARGET_LINK_LIBRARIES(BuildPlugin ${PROJECT_LIBRARIES})
60
61 INSTALL(TARGETS BuildPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
62 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
63 INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Build)
64
65 ADD_UNIT_TESTS(TestVertex.py
66                TestEdge.py
67                TestWire.py
68                TestFace.py)