Salome HOME
#1112 tab key doesn't work on the last field of left panels
[modules/shaper.git] / src / ConstructionPlugin / CMakeLists.txt
index 1c81b62aaad584e2481476434ae9f4d9665d084f..8633f1f7bdf1d5adb3a8322a11e002e2ce006007 100644 (file)
@@ -1,30 +1,51 @@
+## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
 INCLUDE(Common)
+INCLUDE(UnitTest)
 
 SET(PROJECT_HEADERS
     ConstructionPlugin.h
     ConstructionPlugin_Plugin.h
     ConstructionPlugin_Point.h
+       ConstructionPlugin_Axis.h
+       ConstructionPlugin_Plane.h
 )
 
 SET(PROJECT_SOURCES
     ConstructionPlugin_Plugin.cpp
     ConstructionPlugin_Point.cpp
+       ConstructionPlugin_Axis.cpp
+       ConstructionPlugin_Plane.cpp
 )
 
-ADD_DEFINITIONS(-DCONSTRUCTIONPLUGIN_EXPORTS ${BOOST_DEFINITIONS})
-ADD_LIBRARY(ConstructionPlugin SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
-TARGET_LINK_LIBRARIES(ConstructionPlugin ${PROJECT_LIBRARIES} ModelAPI GeomAPI GeomAlgoAPI)
+SET(XML_RESOURCES
+  plugin-Construction.xml
+  point_widget.xml
+  axis_widget.xml
+  plane_widget.xml
+)
+
+SET(PROJECT_LIBRARIES
+    Config
+    ModelAPI 
+    GeomAPI 
+    GeomAlgoAPI
+)
+
+ADD_DEFINITIONS(-DCONSTRUCTIONPLUGIN_EXPORTS)
+ADD_LIBRARY(ConstructionPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
+TARGET_LINK_LIBRARIES(ConstructionPlugin ${PROJECT_LIBRARIES})
+
+INSTALL(TARGETS ConstructionPlugin DESTINATION plugins)
+INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins)
 
 INCLUDE_DIRECTORIES(
+  ../Config
   ../ModelAPI
   ../GeomAPI
   ../GeomAlgoAPI
 )
 
-SET(XML_RESOURCES
-  plugin-Construction.xml
-  point_widget.xml
-)
 
-INSTALL(TARGETS ConstructionPlugin DESTINATION plugins)
-INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins)
+ADD_UNIT_TESTS(TestAxisCreation.py
+               TestPointName.py)