Salome HOME
Copyright update 2022
[modules/paravis.git] / test / standalone / gui / CMakeLists.txt
1 # Copyright (C) 2010-2022  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
51 ADD_DEFINITIONS(${QT_DEFINITIONS})
52
53 # Generate resources that will embedded 
54 SET(ui_resources LightPara_configuration.qrc)
55
56 QT_ADD_RESOURCES(rcs_sources
57     ${ui_resources}
58     )
59 QT_WRAP_UIC(pl_FORMS_HEADERS ${pl_FORMS})
60 QT_WRAP_MOC(pl_HEADERS_MOC  ${pl_HEADERS})
61
62 ADD_EXECUTABLE(paraLight
63     ${pl_SOURCES} 
64     ${pl_HEADERS_MOC} 
65     ${pl_FORMS_HEADERS}
66     ${rcs_sources})
67
68 TARGET_LINK_LIBRARIES(paraLight ${QT_LIBRARIES} ParaView::pqApplicationComponents ParaView::pqPython)
69 #INSTALL(TARGET paraLight bin)