X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModuleBase%2FCMakeLists.txt;h=4c06e43e343bbef524503c91f54c8504c457de47;hb=2ca8be5b9d184c33cbfd78b1259638f340eeb017;hp=dd8b1cb03f65de64c5e8779d6cc322aa28768d5d;hpb=7cc3d9e6696b77a8fdf396cbd55370de3f3ebd9e;p=modules%2Fshaper.git diff --git a/src/ModuleBase/CMakeLists.txt b/src/ModuleBase/CMakeLists.txt index dd8b1cb03..4c06e43e3 100644 --- a/src/ModuleBase/CMakeLists.txt +++ b/src/ModuleBase/CMakeLists.txt @@ -1,20 +1,64 @@ -CMAKE_MINIMUM_REQUIRED(VERSION 2.8.10) - INCLUDE(Common) SET(CMAKE_AUTOMOC ON) SET(PROJECT_HEADERS - ModuleBase.h + ModuleBase.h + ModuleBase_IOperation.h + ModuleBase_IModule.h ModuleBase_Operation.h + ModuleBase_OperationDescription.h + ModuleBase_ModelWidget.h + ModuleBase_WidgetBoolValue.h + ModuleBase_WidgetDoubleValue.h + ModuleBase_WidgetEditor.h + ModuleBase_WidgetFactory.h + ModuleBase_WidgetFeature.h + ModuleBase_WidgetFeatureOrAttribute.h + ModuleBase_WidgetPoint2D.h + ModuleBase_WidgetSwitch.h + ModuleBase_WidgetShapeSelector.h + ModuleBase_IWorkshop.h + ModuleBase_WidgetPoint2dDistance.h + ModuleBase_WidgetValue.h + ModuleBase_WidgetValueFeature.h + ModuleBase_Definitions.h + ModuleBase_SelectionValidator.h + ModuleBase_ISelection.h + ModuleBase_ViewerPrs.h + ModuleBase_WidgetChoice.h + ModuleBase_WidgetFileSelector.h + ModuleBase_DoubleSpinBox.h ) SET(PROJECT_SOURCES + ModuleBase_IOperation.cpp ModuleBase_Operation.cpp + ModuleBase_OperationDescription.cpp + ModuleBase_ModelWidget.cpp + ModuleBase_WidgetBoolValue.cpp + ModuleBase_WidgetDoubleValue.cpp + ModuleBase_WidgetEditor.cpp + ModuleBase_WidgetFactory.cpp + ModuleBase_WidgetFeature.cpp + ModuleBase_WidgetFeatureOrAttribute.cpp + ModuleBase_WidgetPoint2D.cpp + ModuleBase_WidgetSwitch.cpp + ModuleBase_WidgetShapeSelector.cpp + ModuleBase_WidgetPoint2dDistance.cpp + ModuleBase_WidgetValue.cpp + ModuleBase_WidgetValueFeature.cpp + ModuleBase_WidgetChoice.cpp + ModuleBase_WidgetFileSelector.cpp + ModuleBase_DoubleSpinBox.cpp ) SET(PROJECT_LIBRARIES + Config ModelAPI + GeomAPI ${QT_LIBRARIES} + ${CAS_VIEWER} + ${CAS_KERNEL} ) SET(PROJECT_AUTOMOC @@ -27,10 +71,18 @@ SET(PROJECT_AUTOMOC SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES} ${QM_RESOURCES}) #SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES} ${PROJECT_RESOURCES}) -INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/ModelAPI) +INCLUDE_DIRECTORIES( + ${CAS_INCLUDE_DIRS} + ${CMAKE_SOURCE_DIR}/src/Config + ${CMAKE_SOURCE_DIR}/src/Events + ${CMAKE_SOURCE_DIR}/src/Model + ${CMAKE_SOURCE_DIR}/src/ModelAPI + ${CMAKE_SOURCE_DIR}/src/GeomDataAPI + ${CMAKE_SOURCE_DIR}/src/GeomAPI +) -ADD_DEFINITIONS(-DMODULEBASE_EXPORTS) +ADD_DEFINITIONS(-DMODULEBASE_EXPORTS ${CAS_DEFINITIONS}) ADD_LIBRARY(ModuleBase SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS}) -TARGET_LINK_LIBRARIES(ModuleBase ${PROJECT_LIBRARIES}) +TARGET_LINK_LIBRARIES(ModuleBase GeomAPI ${PROJECT_LIBRARIES}) INSTALL(TARGETS ModuleBase DESTINATION bin)