X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FCMakeLists.txt;h=a29526870e0e828d2315efb90fc1425ce2962178;hb=8030eb14e6863867336c9d09653db64c1c5a4db8;hp=261b08746cbaff901c9b3c1b392f977c01539cb9;hpb=b2a34ee4bab2fe2d97f900cbdafcaf122344c46c;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/CMakeLists.txt b/src/FeaturesPlugin/CMakeLists.txt index 261b08746..a29526870 100644 --- a/src/FeaturesPlugin/CMakeLists.txt +++ b/src/FeaturesPlugin/CMakeLists.txt @@ -1,33 +1,79 @@ +## Copyright (C) 2014-20xx CEA/DEN, EDF R&D --> + INCLUDE(Common) +INCLUDE(UnitTest) SET(PROJECT_HEADERS FeaturesPlugin.h FeaturesPlugin_Plugin.h FeaturesPlugin_Extrusion.h - FeaturesPlugin_Boolean.h + FeaturesPlugin_Revolution.h + FeaturesPlugin_Rotation.h + FeaturesPlugin_Movement.h + FeaturesPlugin_Boolean.h + FeaturesPlugin_Group.h + FeaturesPlugin_Placement.h + FeaturesPlugin_CompositeBoolean.h + FeaturesPlugin_ExtrusionBoolean.h + FeaturesPlugin_ExtrusionCut.h + FeaturesPlugin_ExtrusionFuse.h + FeaturesPlugin_RevolutionBoolean.h + FeaturesPlugin_RevolutionCut.h + FeaturesPlugin_RevolutionFuse.h ) SET(PROJECT_SOURCES FeaturesPlugin_Plugin.cpp FeaturesPlugin_Extrusion.cpp + FeaturesPlugin_Revolution.cpp + FeaturesPlugin_Rotation.cpp + FeaturesPlugin_Movement.cpp FeaturesPlugin_Boolean.cpp + FeaturesPlugin_Group.cpp + FeaturesPlugin_Placement.cpp + FeaturesPlugin_CompositeBoolean.cpp + FeaturesPlugin_ExtrusionBoolean.cpp + FeaturesPlugin_RevolutionBoolean.cpp ) SET(XML_RESOURCES plugin-Features.xml extrusion_widget.xml + extrusioncut_widget.xml + extrusionfuse_widget.xml + revolution_widget.xml + revolutioncut_widget.xml + revolutionfuse_widget.xml + rotation_widget.xml + movement_widget.xml boolean_widget.xml + group_widget.xml + placement_widget.xml ) INCLUDE_DIRECTORIES( ../ModelAPI ../GeomAPI ../GeomAlgoAPI + ../Events +) + +SET(PROJECT_LIBRARIES + Events + ModelAPI + GeomAPI + GeomAlgoAPI ) -ADD_DEFINITIONS(-DFEATURESPLUGIN_EXPORTS ${BOOST_DEFINITIONS}) -ADD_LIBRARY(FeaturesPlugin SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES}) -TARGET_LINK_LIBRARIES(FeaturesPlugin ${PROJECT_LIBRARIES} ModelAPI GeomAPI GeomAlgoAPI) +ADD_DEFINITIONS(-DFEATURESPLUGIN_EXPORTS) +ADD_LIBRARY(FeaturesPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES}) +TARGET_LINK_LIBRARIES(FeaturesPlugin ${PROJECT_LIBRARIES}) INSTALL(TARGETS FeaturesPlugin DESTINATION plugins) INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins) + +ADD_UNIT_TESTS(TestExtrusion.py + TestBoolean.py + TestRevolution.py + TestGroup.py + TestMultiBoolean.py)