Salome HOME
Merge V9_dev branch into master
[modules/paravis.git] / test / standalone / gui / CMakeLists.txt
1 # Copyright (C) 2010-2016  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 # Author: Adrien Bruneton (CEA)
20
21 INCLUDE(UseQtExt)
22
23 SET(pl_HEADERS
24     PLMainWindow.hxx
25     PLViewTab.hxx
26     PVViewer_Behaviors.h
27     PVViewer_GUIElements.h
28     )
29     
30 SET(pl_OTHER_HEADERS
31     PVViewer_Core.h
32     )
33
34 SET(pl_SOURCES
35     main.cpp
36     PLMainWindow.cxx
37     PLViewTab.cxx
38     PVViewer_Behaviors.cxx
39     PVViewer_GUIElements.cxx
40     PVViewer_Core.cxx
41     )
42
43 SET(pl_FORMS
44     ui/light_para.ui
45     ui/view_tab.ui
46     )
47     
48 SET(CMAKE_INCLUDE_CURRENT_DIR ON)
49 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
50 INCLUDE_DIRECTORIES(${PARAVIEW_INCLUDE_DIRS})
51
52 ADD_DEFINITIONS(${QT_DEFINITIONS})
53
54 # Generate resources that will embedded 
55 SET(ui_resources
56   "${CMAKE_CURRENT_BINARY_DIR}/LightPara_configuration.qrc")
57   
58 GENERATE_QT_RESOURCE_FROM_FILES(
59     "${ui_resources}"
60     "LightPara/Configuration"
61     "${PROJECT_SOURCE_DIR}/gui/xml/ParaViewReaders.xml;${PROJECT_SOURCE_DIR}/gui/xml/ParaViewFilters.xml")
62
63 QT_ADD_RESOURCES(rcs_sources
64     ${ui_resources}
65     )
66 QT_WRAP_UIC(pl_FORMS_HEADERS ${pl_FORMS})
67 QT_WRAP_MOC(pl_HEADERS_MOC  ${pl_HEADERS})
68
69 ADD_EXECUTABLE(paraLight
70     ${pl_SOURCES} 
71     ${pl_HEADERS_MOC} 
72     ${pl_FORMS_HEADERS}
73     ${rcs_sources})
74
75 # RNV: ${vtkgl2ps_LIBRARIES} was added for Fedora 26 OS    
76 TARGET_LINK_LIBRARIES(paraLight ${QT_LIBRARIES} pqApplicationComponents vtkRenderingFreeType vtkInteractionStyle ${vtkgl2ps_LIBRARIES})
77 #INSTALL(TARGET paraLight bin)
78