Salome HOME
bbcc6cfdcf2c28913f2a286352c7569026061715
[modules/shaper.git] / src / ConstructionPlugin / CMakeLists.txt
1 INCLUDE(Common)
2 INCLUDE(UnitTest)
3
4 SET(PROJECT_HEADERS
5     ConstructionPlugin.h
6     ConstructionPlugin_Plugin.h
7     ConstructionPlugin_Point.h
8 )
9
10 SET(PROJECT_SOURCES
11     ConstructionPlugin_Plugin.cpp
12     ConstructionPlugin_Point.cpp
13 )
14
15 SET(XML_RESOURCES
16   plugin-Construction.xml
17   point_widget.xml
18 )
19
20 ADD_DEFINITIONS(-DCONSTRUCTIONPLUGIN_EXPORTS ${BOOST_DEFINITIONS})
21 ADD_LIBRARY(ConstructionPlugin SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
22 TARGET_LINK_LIBRARIES(ConstructionPlugin ${PROJECT_LIBRARIES} ModelAPI GeomAPI GeomAlgoAPI)
23
24 INSTALL(TARGETS ConstructionPlugin DESTINATION plugins)
25 INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins)
26
27 INCLUDE_DIRECTORIES(
28   ../ModelAPI
29   ../GeomAPI
30   ../GeomAlgoAPI
31 )
32
33
34 ADD_UNIT_TESTS(TestPointName.py
35               )