X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConstructionPlugin%2FCMakeLists.txt;h=5fd66b7b8311b65a473ac87317b31fe5058529d6;hb=1039115c4a6f73a56e97ba9d9e84fad11216a613;hp=dc32be9876c22203738ac932552f1a2d68671448;hpb=d9db580f9120174f43a7dc0d3b8843d614ced62c;p=modules%2Fshaper.git diff --git a/src/ConstructionPlugin/CMakeLists.txt b/src/ConstructionPlugin/CMakeLists.txt index dc32be987..5fd66b7b8 100644 --- a/src/ConstructionPlugin/CMakeLists.txt +++ b/src/ConstructionPlugin/CMakeLists.txt @@ -1,33 +1,58 @@ +## 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_Extrusion.h + ConstructionPlugin_Axis.h + ConstructionPlugin_Plane.h ) SET(PROJECT_SOURCES ConstructionPlugin_Plugin.cpp ConstructionPlugin_Point.cpp - ConstructionPlugin_Extrusion.cpp + ConstructionPlugin_Axis.cpp + ConstructionPlugin_Plane.cpp +) + +SET(XML_RESOURCES + plugin-Construction.xml + point_widget.xml + axis_widget.xml + plane_widget.xml +) + +SET(TEXT_RESOURCES + ConstructionPlugin_msg_en.ts ) -ADD_DEFINITIONS(-DCONSTRUCTIONPLUGIN_EXPORTS ${BOOST_DEFINITIONS}) -ADD_LIBRARY(ConstructionPlugin SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS}) -TARGET_LINK_LIBRARIES(ConstructionPlugin ${PROJECT_LIBRARIES} ModelAPI GeomAPI GeomAlgoAPI) +SET(PROJECT_LIBRARIES + Config + ModelAPI + GeomAPI + GeomAlgoAPI +) + +SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES}) + +ADD_DEFINITIONS(-DCONSTRUCTIONPLUGIN_EXPORTS) +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} ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}) +INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Construction) INCLUDE_DIRECTORIES( + ../Config ../ModelAPI ../GeomAPI ../GeomAlgoAPI ) -SET(XML_RESOURCES - plugin-Construction.xml - point_widget.xml - extrusion_widget.xml -) -INSTALL(TARGETS ConstructionPlugin DESTINATION plugins) -INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins) +ADD_UNIT_TESTS(TestAxisCreation.py + TestPointName.py)