Salome HOME
updated copyright message
[modules/gui.git] / src / PV3DViewer / CMakeLists.txt
1 # Copyright (C) 2014-2023  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 INCLUDE(UseQtExt)
21
22 # --- options ---
23
24 INCLUDE_DIRECTORIES(
25   ${PROJECT_SOURCE_DIR}/src/Qtx
26   ${PROJECT_SOURCE_DIR}/src/SUIT
27   ${PROJECT_SOURCE_DIR}/src/PV3DViewer
28   ${PROJECT_SOURCE_DIR}/src/PVViewer
29   ${PROJECT_SOURCE_DIR}/src/PVServerService
30   )
31
32 ADD_DEFINITIONS(
33   ${KERNEL_DEFINITIONS}
34   ${PYTHON_DEFINITIONS}
35   )
36
37 SET(_link_LIBRARIES 
38   ${KERNEL_SALOMELocalTrace} 
39   ${KERNEL_OpUtil}
40   suit 
41   PV3DViewer 
42   PVViewer
43   PVServerService
44   ParaView::pqApplicationComponents
45   ParaView::pqPython
46   )
47
48 # --- headers ---
49
50 # header files / to be processed by moc
51 SET(_moc_HEADERS
52   PV3DViewer_ViewManager.h
53   PV3DViewer_ViewModel.h
54   PV3DViewer_ViewWindow.h
55   # PV3DViewer_Behaviors.h
56   # PV3DViewer_GUIElements.h
57   # PV3DViewer_InitSingleton.h
58 )
59
60 # header files / no moc processing
61 SET(_other_HEADERS
62   PV3DViewer.h
63   # PV3DViewer_OutputWindow.h
64   # PV3DViewer_Core.h
65 )
66 # header files / to install
67 SET(PV3DViewer_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
68
69 # resource files / to be processed by lrelease
70 SET(_ts_RESOURCES
71   resources/PV3DViewer_msg_en.ts
72   resources/PV3DViewer_msg_ja.ts
73   resources/PV3DViewer_msg_fr.ts
74 )
75
76 # --- sources ---
77
78 # sources / moc wrappings
79 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
80
81 # sources / rcc wrappings
82 QT_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
83
84 # sources / static
85 SET(_other_SOURCES
86   PV3DViewer_ViewManager.cxx
87   PV3DViewer_ViewModel.cxx
88   PV3DViewer_ViewWindow.cxx
89   # PV3DViewer_OutputWindow.cxx
90   # PV3DViewer_Behaviors.cxx
91   # PV3DViewer_GUIElements.cxx
92   # PV3DViewer_Core.cxx
93   # PV3DViewer_InitSingleton.cxx
94   )
95   
96 # sources / to compile
97 SET(PV3DViewer_SOURCES 
98   ${_other_SOURCES} 
99   ${_moc_SOURCES} 
100   ${_rcc_SOURCES}
101   )
102
103 # --- rules ---
104 ADD_LIBRARY(PV3DViewer ${PV3DViewer_SOURCES})
105
106 TARGET_LINK_LIBRARIES(PV3DViewer ${_link_LIBRARIES})
107 INSTALL(TARGETS PV3DViewer EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
108
109 QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")
110
111 # --- header and resources installation ---
112 INSTALL(FILES ${PV3DViewer_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})