X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConstructionPlugin%2FCMakeLists.txt;h=8633f1f7bdf1d5adb3a8322a11e002e2ce006007;hb=4d6bb9de0e54f09a9bbacc94a058cb7cd437d535;hp=bbcc6cfdcf2c28913f2a286352c7569026061715;hpb=068187871664116b252b91a41624b362c4a970eb;p=modules%2Fshaper.git diff --git a/src/ConstructionPlugin/CMakeLists.txt b/src/ConstructionPlugin/CMakeLists.txt index bbcc6cfdc..8633f1f7b 100644 --- a/src/ConstructionPlugin/CMakeLists.txt +++ b/src/ConstructionPlugin/CMakeLists.txt @@ -1,3 +1,5 @@ +## Copyright (C) 2014-20xx CEA/DEN, EDF R&D + INCLUDE(Common) INCLUDE(UnitTest) @@ -5,31 +7,45 @@ SET(PROJECT_HEADERS ConstructionPlugin.h ConstructionPlugin_Plugin.h ConstructionPlugin_Point.h + ConstructionPlugin_Axis.h + ConstructionPlugin_Plane.h ) SET(PROJECT_SOURCES ConstructionPlugin_Plugin.cpp ConstructionPlugin_Point.cpp + ConstructionPlugin_Axis.cpp + ConstructionPlugin_Plane.cpp ) SET(XML_RESOURCES plugin-Construction.xml point_widget.xml + axis_widget.xml + plane_widget.xml +) + +SET(PROJECT_LIBRARIES + Config + ModelAPI + GeomAPI + GeomAlgoAPI ) -ADD_DEFINITIONS(-DCONSTRUCTIONPLUGIN_EXPORTS ${BOOST_DEFINITIONS}) -ADD_LIBRARY(ConstructionPlugin SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES}) -TARGET_LINK_LIBRARIES(ConstructionPlugin ${PROJECT_LIBRARIES} ModelAPI GeomAPI GeomAlgoAPI) +ADD_DEFINITIONS(-DCONSTRUCTIONPLUGIN_EXPORTS) +ADD_LIBRARY(ConstructionPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES}) +TARGET_LINK_LIBRARIES(ConstructionPlugin ${PROJECT_LIBRARIES}) INSTALL(TARGETS ConstructionPlugin DESTINATION plugins) INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins) INCLUDE_DIRECTORIES( + ../Config ../ModelAPI ../GeomAPI ../GeomAlgoAPI ) -ADD_UNIT_TESTS(TestPointName.py - ) +ADD_UNIT_TESTS(TestAxisCreation.py + TestPointName.py)