Salome HOME
Copyright update 2022
[modules/gui.git] / src / PVViewer / CMakeLists.txt
index 65d5f73b595c4a8887685579a15559fb6fd07a48..28c19763e7569514374ce07dfe0dc87afc7756b1 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2010-2015  CEA/DEN, EDF R&D
+# Copyright (C) 2014-2022  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
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-INCLUDE(UseQt4Ext)
-
 # Install ParaView filters, etc ...
 ADD_SUBDIRECTORY(resources)
 
+INCLUDE(UseQtExt)
+
 # --- options ---
 
 INCLUDE_DIRECTORIES(
-  ${PROJECT_SOURCE_DIR}/src/SUIT
-  ${PROJECT_SOURCE_DIR}/src/STD
   ${PROJECT_SOURCE_DIR}/src/Qtx
-  ${PROJECT_SOURCE_DIR}/src/Event
-  ${PROJECT_SOURCE_DIR}/src/PyInterp
+  ${PROJECT_SOURCE_DIR}/src/SUIT
   ${PROJECT_SOURCE_DIR}/src/PVServerService
-  ${CMAKE_SOURCE_DIR}/src/LogWindow
   )
 
 ADD_DEFINITIONS(
@@ -42,12 +38,10 @@ ADD_DEFINITIONS(
 SET(_link_LIBRARIES 
   ${KERNEL_SALOMELocalTrace} 
   ${KERNEL_OpUtil}
-  PyInterp  
   suit 
-  Event 
   PVServerService
-  pqApplicationComponents
-  vtkRenderingFreeTypeOpenGL
+  ParaView::pqApplicationComponents
+  ParaView::pqPython
   )
 
 # --- headers ---
@@ -59,12 +53,13 @@ SET(_moc_HEADERS
   PVViewer_ViewWindow.h
   PVViewer_Behaviors.h
   PVViewer_GUIElements.h
+  PVViewer_InitSingleton.h
 )
 
 # header files / no moc processing
 SET(_other_HEADERS
   PVViewer.h
-  PVViewer_LogWindowAdapter.h
+  PVViewer_OutputWindow.h
   PVViewer_Core.h
 )
 # header files / to install
@@ -80,20 +75,21 @@ SET(_ts_RESOURCES
 # --- sources ---
 
 # sources / moc wrappings
-QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
 
 # sources / rcc wrappings
-QT4_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
+QT_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
 
 # sources / static
 SET(_other_SOURCES
   PVViewer_ViewManager.cxx
   PVViewer_ViewModel.cxx
   PVViewer_ViewWindow.cxx
-  PVViewer_LogWindowAdapter.cxx
+  PVViewer_OutputWindow.cxx
   PVViewer_Behaviors.cxx
   PVViewer_GUIElements.cxx
   PVViewer_Core.cxx
+  PVViewer_InitSingleton.cxx
   )
   
 # sources / to compile
@@ -109,7 +105,7 @@ ADD_LIBRARY(PVViewer ${PVViewer_SOURCES})
 TARGET_LINK_LIBRARIES(PVViewer ${_link_LIBRARIES})
 INSTALL(TARGETS PVViewer EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
 
-QT4_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")
+QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")
 
 # --- header and resources installation ---
 INSTALL(FILES ${PVViewer_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})