Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / ModuleBase / CMakeLists.txt
index dd8b1cb03f65de64c5e8779d6cc322aa28768d5d..ddf454e2c6a816cf620a27716dd3c64492265ca2 100644 (file)
@@ -1,20 +1,77 @@
-CMAKE_MINIMUM_REQUIRED(VERSION 2.8.10)
-
 INCLUDE(Common)
 SET(CMAKE_AUTOMOC ON)
 
 SET(PROJECT_HEADERS
-    ModuleBase.h
+       ModuleBase.h
+       ModuleBase_Tools.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
+       ModuleBase_IPropertyPanel.h
+       ModuleBase_IViewer.h
+       ModuleBase_WidgetLineEdit.h
+       ModuleBase_WidgetMultiSelector.h
+       ModuleBase_ViewerFilters.h
+       ModuleBase_ResultPrs.h
 )
 
 SET(PROJECT_SOURCES
+       ModuleBase_Tools.cpp
+       ModuleBase_IModule.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
+    ModuleBase_WidgetLineEdit.cpp
+       ModuleBase_WidgetMultiSelector.cpp
+       ModuleBase_ViewerFilters.cpp
+       ModuleBase_ResultPrs.cpp
 )
 
 SET(PROJECT_LIBRARIES
+    Config
     ModelAPI
+       GeomAPI
+       GeomAlgoAPI
     ${QT_LIBRARIES}
+       ${CAS_VIEWER}
+       ${CAS_KERNEL}
+       ${CAS_SHAPE}
 )
 
 SET(PROJECT_AUTOMOC 
@@ -27,10 +84,19 @@ 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
+    ${CMAKE_SOURCE_DIR}/src/GeomAlgoAPI
+)
 
-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)