Salome HOME
Adding option to skip the connection to an external server.
[modules/paravis.git] / src / PVGUI / view / CMakeLists.txt
1 # Copyright (C) 2010-2014  CEA/DEN, EDF R&D
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(UseQt4Ext)
21
22 # --- options ---
23
24 INCLUDE_DIRECTORIES(${GUI_INCLUDE_DIRS} 
25     ${QT_INCLUDES}
26     ${CMAKE_CURRENT_SOURCE_DIR}
27     )
28
29 SET(_PARAVIEW_APP_COMPO_LIB
30   pqApplicationComponents
31   )
32
33 ADD_DEFINITIONS(${KERNEL_DEFINITIONS})
34 ADD_DEFINITIONS(${OMNIORB_DEFINITIONS})
35
36 SET(_link_LIBRARIES 
37   ${KERNEL_LDFLAGS} ${KERNEL_SALOMELocalTrace} ${KERNEL_SalomeLifeCycleCORBA}
38   ${GUI_LDFLAGS} ${GUI_SalomeApp} ${GUI_LightApp} ${GUI_suit} ${GUI_Event} 
39   ${_PARAVIEW_APP_COMPO_LIB}
40   SalomeIDLPARAVIS
41 )
42
43 # --- headers ---
44
45 # header files / to be processed by moc
46 SET(_moc_HEADERS
47   PVViewer_ViewManager.h
48   PVViewer_ViewModel.h
49   PVViewer_ViewWindow.h
50   PVViewer_Behaviors.h
51 )
52
53 # header files / no moc processing
54 SET(_other_HEADERS
55   PVViewer_LogWindowAdapter.h
56 )
57 # header files / to install
58 SET(PVViewer_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
59
60 # --- sources ---
61
62 # sources / moc wrappings
63 QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
64
65 # sources / static
66 SET(_other_SOURCES
67   PVViewer_ViewManager.cxx
68   PVViewer_ViewModel.cxx
69   PVViewer_ViewWindow.cxx
70   PVViewer_LogWindowAdapter.cxx
71   PVViewer_Behaviors.cxx
72   )
73   
74 # sources / to compile
75 SET(PVViewer_SOURCES 
76   ${_other_SOURCES} 
77   ${_moc_SOURCES} 
78   )
79
80 # --- rules ---
81 ADD_LIBRARY(PVViewer ${PVViewer_SOURCES})
82
83 TARGET_LINK_LIBRARIES(PVViewer ${_link_LIBRARIES})
84 INSTALL(TARGETS PVViewer EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
85
86 # --- header and resources installation ---
87 INSTALL(FILES ${PVViewer_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})