Salome HOME
Copyright update: 2016
[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 SET(pl_HEADERS
22     PLMainWindow.hxx
23     PLViewTab.hxx
24     PVViewer_Behaviors.h
25     PVViewer_GUIElements.h
26     )
27     
28 SET(pl_OTHER_HEADERS
29     PVViewer_Core.h
30     )
31
32 SET(pl_SOURCES
33     main.cpp
34     PLMainWindow.cxx
35     PLViewTab.cxx
36     PVViewer_Behaviors.cxx
37     PVViewer_GUIElements.cxx
38     PVViewer_Core.cxx
39     )
40
41 SET(pl_FORMS
42     ui/light_para.ui
43     ui/view_tab.ui
44     )
45     
46 SET(CMAKE_INCLUDE_CURRENT_DIR ON)
47 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
48 INCLUDE_DIRECTORIES(${PARAVIEW_INCLUDE_DIRS})
49
50 INCLUDE(${QT_USE_FILE})
51 ADD_DEFINITIONS(${QT_DEFINITIONS})
52
53 # Generate resources that will embedded 
54 SET(ui_resources
55   "${CMAKE_CURRENT_BINARY_DIR}/LightPara_configuration.qrc")
56   
57 GENERATE_QT_RESOURCE_FROM_FILES(
58     "${ui_resources}"
59     "/LightPara/Configuration"
60     "${PROJECT_SOURCE_DIR}/gui/xml/ParaViewReaders.xml")
61
62 QT4_ADD_RESOURCES(rcs_sources
63     ${ui_resources}
64     )
65 QT4_WRAP_UI(pl_FORMS_HEADERS ${pl_FORMS})
66 QT4_WRAP_CPP(pl_HEADERS_MOC  ${pl_HEADERS})
67
68 ADD_EXECUTABLE(paraLight
69     ${pl_SOURCES} 
70     ${pl_HEADERS_MOC} 
71     ${pl_FORMS_HEADERS}
72     ${rcs_sources})
73     
74 TARGET_LINK_LIBRARIES(paraLight ${QT_LIBRARIES} pqApplicationComponents vtkRenderingFreeType)#vtkRenderingFreeTypeOpenGL)
75 #INSTALL(TARGET paraLight bin)
76