## 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 ConstructionPlugin_Validators.h ) SET(PROJECT_SOURCES ConstructionPlugin_Plugin.cpp ConstructionPlugin_Point.cpp ConstructionPlugin_Axis.cpp ConstructionPlugin_Plane.cpp ConstructionPlugin_Validators.cpp ) SET(XML_RESOURCES plugin-Construction.xml point_widget.xml axis_widget.xml plane_widget.xml ) SET(TEXT_RESOURCES ConstructionPlugin_msg_en.ts ) 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 ../Events ) ADD_UNIT_TESTS(TestAxisCreation.py UnitTestAxis.py TestPoint.py TestPointName.py TestPlane.py)