Salome HOME
updated copyright message
[modules/gui.git] / src / LightApp / CMakeLists.txt
old mode 100755 (executable)
new mode 100644 (file)
index 770f969..49993f9
@@ -1,4 +1,4 @@
-# Copyright (C) 2012-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2012-2023  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -23,9 +23,10 @@ INCLUDE(UseQtExt)
 
 # additional include directories
 INCLUDE_DIRECTORIES(
-  ${CAS_INCLUDE_DIRS}
+  ${OpenCASCADE_INCLUDE_DIR}
   ${QT_INCLUDES}
   ${HDF5_INCLUDE_DIRS}
+  ${GRAPHVIZ_INCLUDE_DIRS}
   ${PTHREAD_INCLUDE_DIR}
   ${PROJECT_BINARY_DIR}
   ${PROJECT_SOURCE_DIR}/src/CAM
@@ -58,6 +59,12 @@ IF(SALOME_USE_OCCVIEWER)
     INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/SOCC)
   ENDIF()
 ENDIF()
+IF(SALOME_USE_PV3DVIEWER)
+  INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/PV3DViewer)
+  IF(SALOME_USE_SALOMEOBJECT)
+    INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/SPV3D)
+  ENDIF()
+ENDIF()
 IF(SALOME_USE_PLOT2DVIEWER)
   INCLUDE_DIRECTORIES(${QWT_INCLUDE_DIR})
   INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/Plot2d)
@@ -66,7 +73,6 @@ IF(SALOME_USE_PLOT2DVIEWER)
   ENDIF()
 ENDIF()
 IF(SALOME_USE_VTKVIEWER)
-  INCLUDE_DIRECTORIES(${VTK_INCLUDE_DIRS})
   INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/VTKViewer)
   IF(SALOME_USE_SALOMEOBJECT)
     INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/SVTK)
@@ -81,14 +87,14 @@ ENDIF()
 IF(SALOME_USE_PYCONSOLE)
   INCLUDE_DIRECTORIES(
     ${PYTHON_INCLUDE_DIRS}
-    ${PROJECT_SOURCE_DIR}/src/PyConsole
-    ${PROJECT_SOURCE_DIR}/src/PyInterp
+    ${PROJECT_SOURCE_DIR}/tools/PyConsole/src
+    ${PROJECT_SOURCE_DIR}/tools/PyInterp/src
     ${PROJECT_SOURCE_DIR}/src/SUITApp
   )
 ENDIF()
 
 # additional preprocessor / compiler flags
-ADD_DEFINITIONS(${CAS_DEFINITIONS} ${QT_DEFINITIONS} ${HDF5_DEFINITIONS})
+ADD_DEFINITIONS(${OpenCASCADE_DEFINITIONS} ${QT_DEFINITIONS} ${HDF5_DEFINITIONS})
 IF(SALOME_USE_PLOT2DVIEWER)
   ADD_DEFINITIONS(${QWT_DEFINITIONS})
 ENDIF()
@@ -98,12 +104,14 @@ ENDIF()
 
 # libraries to link to
 SET(_link_LIBRARIES
-  ${CAS_KERNEL}
+  ${OpenCASCADE_FoundationClasses_LIBRARIES}
   ${QT_LIBRARIES}
   ${HDF5_LIBRARIES}
-  CASCatch qtx suit std SalomeStyle SalomePrs CAM LogWindow ObjBrowser Event 
+  CASCatch qtx suit std SalomeStyle SalomePrs CAM LogWindow ObjBrowser Event
   ${KERNEL_SalomeHDFPersist} ${KERNEL_SALOMELocalTrace}
+  ${GRAPHVIZ_LIBRARIES}
 )
+
 IF(SALOME_USE_SALOMEOBJECT)
   LIST(APPEND _link_LIBRARIES SalomeObject)
 ENDIF()
@@ -122,6 +130,12 @@ IF(SALOME_USE_OCCVIEWER)
     LIST(APPEND _link_LIBRARIES SOCC)
   ENDIF()
 ENDIF()
+IF(SALOME_USE_PV3DVIEWER)
+  LIST(APPEND _link_LIBRARIES PV3DViewer)
+  IF(SALOME_USE_SALOMEOBJECT)
+    LIST(APPEND _link_LIBRARIES SPV3D)
+  ENDIF()
+ENDIF()
 IF(SALOME_USE_PLOT2DVIEWER)
   LIST(APPEND _link_LIBRARIES Plot2d)
   IF(SALOME_USE_SALOMEOBJECT)
@@ -147,7 +161,7 @@ ENDIF()
 # --- headers ---
 
 # header files / to be processed by moc
-SET(_moc_HEADERS   
+SET(_moc_HEADERS
   LightApp_AboutDlg.h
   LightApp_Application.h
   LightApp_DataModel.h
@@ -165,6 +179,7 @@ SET(_moc_HEADERS
   LightApp_Study.h
   LightApp_SwitchOp.h
   LightApp_WgViewModel.h
+  LightApp_ExtInfoDlg.h
 )
 IF(SALOME_USE_GLVIEWER)
   LIST(APPEND _moc_HEADERS LightApp_GLSelector.h)
@@ -175,6 +190,11 @@ ENDIF()
 IF(SALOME_USE_OCCVIEWER)
   LIST(APPEND _moc_HEADERS LightApp_OCCSelector.h)
 ENDIF()
+IF(SALOME_USE_PV3DVIEWER)
+  IF(SALOME_USE_SALOMEOBJECT)
+    LIST(APPEND _moc_HEADERS LightApp_PV3DSelector.h)
+  ENDIF()
+ENDIF()
 IF(SALOME_USE_PLOT2DVIEWER)
   LIST(APPEND _moc_HEADERS LightApp_Plot2dSelector.h)
 ENDIF()
@@ -225,9 +245,12 @@ SET(_other_RESOURCES
   resources/icon_applogo.png
   resources/icon_default.png
   resources/icon_module.png
-  resources/icon_module_big.png
   resources/icon_select.png
-  resources/LightApp.ini
+  resources/icon_earth.png
+  resources/icon_life_ring.png
+  resources/icon_add_module.png
+  resources/icon_remove_module.png
+  resources/icon_info_module.png
   resources/LightApp.xml
 )
 
@@ -268,6 +291,7 @@ SET(_other_SOURCES
   LightApp_Study.cxx
   LightApp_SwitchOp.cxx
   LightApp_WgViewModel.cxx
+  LightApp_ExtInfoDlg.cxx
 )
 IF(SALOME_USE_GLVIEWER)
   LIST(APPEND _other_SOURCES LightApp_GLSelector.cxx)
@@ -278,6 +302,11 @@ ENDIF()
 IF(SALOME_USE_OCCVIEWER)
   LIST(APPEND _other_SOURCES LightApp_OCCSelector.cxx)
 ENDIF()
+IF(SALOME_USE_PV3DVIEWER)
+  IF(SALOME_USE_SALOMEOBJECT)
+    LIST(APPEND _other_SOURCES LightApp_PV3DSelector.cxx)
+  ENDIF()
+ENDIF()
 IF(SALOME_USE_PLOT2DVIEWER)
   LIST(APPEND _other_SOURCES LightApp_Plot2dSelector.cxx)
 ENDIF()