X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConstructionPlugin%2FCMakeLists.txt;h=43ac4fdadeb1581698497044086c1471849f68e7;hb=a7b30985aea84262926a6d99b2a4ecd17a52a137;hp=302e08bb3323aceb00162d45fe3a0f584b63a147;hpb=85253719b1f5e630551c2590d23deab11db55fe1;p=modules%2Fshaper.git diff --git a/src/ConstructionPlugin/CMakeLists.txt b/src/ConstructionPlugin/CMakeLists.txt index 302e08bb3..43ac4fdad 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,29 +27,38 @@ SET(XML_RESOURCES plane_widget.xml ) +SET(TEXT_RESOURCES + ConstructionPlugin_msg_en.ts +) + SET(PROJECT_LIBRARIES Config - ModelAPI - GeomAPI + ModelAPI + GeomAPI GeomAlgoAPI - ${CAS_KERNEL} - ${CAS_SHAPE} ) +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 plugins) -INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins) +INSTALL(TARGETS ConstructionPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES}) +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(TestPointName.py - ) +ADD_UNIT_TESTS(TestAxisCreation.py + UnitTestAxis.py + TestPoint.py + TestPointName.py + TestPlane.py)