Salome HOME
[bos #40644][CEA](2024-T1) Feature search.
[modules/gui.git] / src / SUIT / CMakeLists.txt
index 5157789bd8e7e5f7e8ac03873521ca31546a6e6b..95015a57c70e7b1657312321c908670cac4a6984 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2012-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2012-2024  CEA, EDF, OPEN CASCADE
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -17,7 +17,7 @@
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-INCLUDE(UseQt4Ext)
+INCLUDE(UseQtExt)
 
 # --- options ---
 
@@ -30,40 +30,38 @@ INCLUDE_DIRECTORIES(
 
 # additional preprocessor / compiler flags
 ADD_DEFINITIONS(${QT_DEFINITIONS})
-IF(ENABLE_TESTRECORDER)
-  ADD_DEFINITIONS("-DENABLE_TESTRECORDER ${TESTRECORDER_DEFINITIONS}")
-ENDIF()
 
 # libraries to link to
 SET(_link_LIBRARIES ${PLATFORM_LIBS} ${QT_LIBRARIES} qtx ObjBrowser)
-IF(ENABLE_TESTRECORDER)
-  LIST(APPEND _link_LIBRARIES ${TESTRECORDER_LIBS})
-ENDIF()
 
 # --- headers ---
 
 # header files / to be processed by moc
-SET(_moc_HEADERS   
-  SUIT_Accel.h  
-  SUIT_ActionOperation.h 
-  SUIT_Application.h 
-  SUIT_DataBrowser.h 
-  SUIT_DataObject.h 
-  SUIT_Desktop.h 
-  SUIT_FileDlg.h 
+SET(_moc_HEADERS
+  SUIT_Accel.h
+  SUIT_ActionOperation.h
+  SUIT_Application.h
+  SUIT_AutoRotate.h
+  SUIT_DataBrowser.h
+  SUIT_DataObject.h
+  SUIT_Desktop.h
+  SUIT_FileDlg.h
+  SUIT_FindActionDialog.h
   SUIT_LicenseDlg.h
   SUIT_MessageBox.h
-  SUIT_Operation.h 
-  SUIT_PopupClient.h 
-  SUIT_PreferenceMgr.h 
-  SUIT_SelectionMgr.h 
-  SUIT_Session.h 
+  SUIT_Operation.h
+  SUIT_PagePrefShortcutTreeItem.h
+  SUIT_PopupClient.h
+  SUIT_PreferenceMgr.h
+  SUIT_SelectionMgr.h
+  SUIT_Session.h
   SUIT_ShortcutMgr.h
+  SUIT_ShortcutTree.h
   SUIT_Study.h
-  SUIT_TreeModel.h 
-  SUIT_ViewManager.h 
-  SUIT_ViewModel.h 
-  SUIT_ViewWindow.h 
+  SUIT_TreeModel.h
+  SUIT_ViewManager.h
+  SUIT_ViewModel.h
+  SUIT_ViewWindow.h
 )
 
 # header files / no moc processing
@@ -102,18 +100,20 @@ SET(_other_RESOURCES
   resources/icon_visibility_on.png
   resources/icon_visibility_off.png
   resources/view_sync.png
+  resources/action_assets.json
 )
 
 # --- sources ---
 
 # sources / moc wrappings
-QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
 
 # sources / static
 SET(_other_SOURCES
   SUIT_Accel.cxx
   SUIT_ActionOperation.cxx
   SUIT_Application.cxx
+  SUIT_AutoRotate.cxx
   SUIT_CameraProperties.cxx
   SUIT_DataBrowser.cxx
   SUIT_DataObject.cxx
@@ -124,10 +124,12 @@ SET(_other_SOURCES
   SUIT_ExceptionHandler.cxx
   SUIT_FileDlg.cxx
   SUIT_FileValidator.cxx
+  SUIT_FindActionDialog.cxx
   SUIT_LicenseDlg.cxx
   SUIT_MessageBox.cxx
   SUIT_Operation.cxx
   SUIT_OverrideCursor.cxx
+  SUIT_PagePrefShortcutTreeItem.cxx
   SUIT_PopupClient.cxx
   SUIT_PreferenceMgr.cxx
   SUIT_ResourceMgr.cxx
@@ -136,6 +138,7 @@ SET(_other_SOURCES
   SUIT_Selector.cxx
   SUIT_Session.cxx
   SUIT_ShortcutMgr.cxx
+  SUIT_ShortcutTree.cxx
   SUIT_Study.cxx
   SUIT_Tools.cxx
   SUIT_TreeModel.cxx
@@ -154,7 +157,6 @@ TARGET_LINK_LIBRARIES(suit ${_link_LIBRARIES})
 INSTALL(TARGETS suit EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
 
 INSTALL(FILES ${suit_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
-QT4_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")
+QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")
 
 INSTALL(FILES ${_other_RESOURCES} DESTINATION ${SALOME_GUI_INSTALL_RES_DATA})
-