X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConstructionPlugin%2FCMakeLists.txt;h=c0fb687198d7a27e8d92921ce4b3ac4ad09368c4;hb=549138c2302de10c21a72b8c3ac4da9694874da9;hp=2d926b9d541241ecec25b257fbdfb38faeaa363b;hpb=42a0eadea64d278ba043680cfee74fa2f1c0f688;p=modules%2Fshaper.git diff --git a/src/ConstructionPlugin/CMakeLists.txt b/src/ConstructionPlugin/CMakeLists.txt index 2d926b9d5..c0fb68719 100644 --- a/src/ConstructionPlugin/CMakeLists.txt +++ b/src/ConstructionPlugin/CMakeLists.txt @@ -7,15 +7,17 @@ SET(PROJECT_HEADERS ConstructionPlugin.h ConstructionPlugin_Plugin.h ConstructionPlugin_Point.h - ConstructionPlugin_Axis.h - ConstructionPlugin_Plane.h + ConstructionPlugin_Axis.h + ConstructionPlugin_Plane.h + ConstructionPlugin_Validators.h ) SET(PROJECT_SOURCES ConstructionPlugin_Plugin.cpp ConstructionPlugin_Point.cpp - ConstructionPlugin_Axis.cpp - ConstructionPlugin_Plane.cpp + ConstructionPlugin_Axis.cpp + ConstructionPlugin_Plane.cpp + ConstructionPlugin_Validators.cpp ) SET(XML_RESOURCES @@ -25,6 +27,10 @@ SET(XML_RESOURCES plane_widget.xml ) +SET(TEXT_RESOURCES + ConstructionPlugin_msg_en.ts +) + SET(PROJECT_LIBRARIES Config ModelAPI @@ -32,30 +38,26 @@ SET(PROJECT_LIBRARIES GeomAlgoAPI ) -SET(ICON_RESOURCES - icons/axis.png - icons/by_two_points_32x32.png - icons/circle.png - icons/cylindrical_face_32x32.png - icons/plane.png - icons/point.png -) +SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES}) ADD_DEFINITIONS(-DCONSTRUCTIONPLUGIN_EXPORTS) -ADD_LIBRARY(ConstructionPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES}) +ADD_LIBRARY(ConstructionPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES}) TARGET_LINK_LIBRARIES(ConstructionPlugin ${PROJECT_LIBRARIES}) INSTALL(TARGETS ConstructionPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES}) -INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}) -INSTALL(FILES ${ICON_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Construction) +INSTALL(FILES ${XML_RESOURCES} ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}) +INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Construction) INCLUDE_DIRECTORIES( ../Config ../ModelAPI ../GeomAPI ../GeomAlgoAPI + ../Events ) ADD_UNIT_TESTS(TestAxisCreation.py - TestPointName.py) + UnitTestAxis.py + TestPointName.py + TestPoint.py)