X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConstructionPlugin%2FCMakeLists.txt;h=53489c8fdf55cab13a5a154a46b1e42571c4dc1b;hb=a28a6cccd566a266f6fe3a372d6059f660851074;hp=dc32be9876c22203738ac932552f1a2d68671448;hpb=50eee93b00efc7e0e2595937d9cba45e131ca8cb;p=modules%2Fshaper.git diff --git a/src/ConstructionPlugin/CMakeLists.txt b/src/ConstructionPlugin/CMakeLists.txt index dc32be987..53489c8fd 100644 --- a/src/ConstructionPlugin/CMakeLists.txt +++ b/src/ConstructionPlugin/CMakeLists.txt @@ -1,21 +1,36 @@ INCLUDE(Common) +INCLUDE(UnitTest) SET(PROJECT_HEADERS ConstructionPlugin.h ConstructionPlugin_Plugin.h ConstructionPlugin_Point.h - ConstructionPlugin_Extrusion.h ) SET(PROJECT_SOURCES ConstructionPlugin_Plugin.cpp ConstructionPlugin_Point.cpp - ConstructionPlugin_Extrusion.cpp ) -ADD_DEFINITIONS(-DCONSTRUCTIONPLUGIN_EXPORTS ${BOOST_DEFINITIONS}) -ADD_LIBRARY(ConstructionPlugin SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS}) -TARGET_LINK_LIBRARIES(ConstructionPlugin ${PROJECT_LIBRARIES} ModelAPI GeomAPI GeomAlgoAPI) +SET(XML_RESOURCES + plugin-Construction.xml + point_widget.xml +) + +SET(PROJECT_LIBRARIES + ModelAPI + GeomAPI + GeomAlgoAPI + ${CAS_KERNEL} + ${CAS_SHAPE} +) + +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( ../ModelAPI @@ -23,11 +38,6 @@ INCLUDE_DIRECTORIES( ../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(TestPointName.py + )