]> SALOME platform Git repositories - modules/yacs.git/blob - src/ydfx_gui/CMakeLists.txt
Salome HOME
Add a generic widget for choosing resource parameters.
[modules/yacs.git] / src / ydfx_gui / CMakeLists.txt
1 # Copyright (C) 2012-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
20 INCLUDE(UseQtExt)
21
22 # additional include directories
23 INCLUDE_DIRECTORIES(
24   ${PYTHON_INCLUDE_DIR}
25   ${QT_INCLUDES}
26   ${KERNEL_INCLUDE_DIRS}
27   ${PROJECT_SOURCE_DIR}/src/bases
28   ${PROJECT_SOURCE_DIR}/src/engine
29   ${PROJECT_SOURCE_DIR}/src/runtime
30   ${PROJECT_SOURCE_DIR}/src/yacsloader
31   ${PROJECT_SOURCE_DIR}/src/evalyfx
32   )
33
34 # additional preprocessor / compiler flags
35 ADD_DEFINITIONS(
36   ${QT_DEFINITIONS}
37   ${PYTHON_DEFINITIONS})
38
39 IF(SALOME_YACS_USE_KERNEL)
40   INCLUDE_DIRECTORIES(${KERNEL_INCLUDE_DIRS})
41   ADD_DEFINITIONS(${KERNEL_DEFINITIONS})
42   SET(SALOME_LIBS 
43     ${KERNEL_SalomeLifeCycleCORBA}
44     ${KERNEL_SalomeIDLKernel}
45     ${KERNEL_SalomeNS}
46     ${KERNEL_SalomeContainer}
47     ${KERNEL_SALOMEBasics}
48     ${KERNEL_SalomeResourcesManager}
49     ${KERNEL_OpUtil}
50     ${KERNEL_SALOMELocalTrace}
51     ${KERNEL_Registry}
52     ${KERNEL_SalomeNotification}
53     ${KERNEL_ResourcesManager}
54     ${KERNEL_SalomeHDFPersist}
55     ${KERNEL_SalomeGenericObj}
56     )
57 ENDIF(SALOME_YACS_USE_KERNEL)
58
59
60 SET(ydfxwidgets_LIBRARIES
61   YACSevalYFX
62   ${QT_LIBRARIES}
63   ${PYTHON_LIBRARIES}
64   )
65
66 SET(_moc_HEADERS
67   YDFXGUIPortsSelector.hxx
68   YDFXGUIPushButtons.hxx
69   YDFXGUIMain.hxx
70   YDFXGUIWrap.hxx
71   YDFXGUISeqInit.hxx
72   YDFXGUIParametrizer.hxx
73   YDFXGUIHostParametrizer.hxx
74   ResourceWidget.hxx
75   )
76
77 # sources / moc wrappings
78 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
79
80 SET(ydfxwidgets_HEADERS
81   ydfxwidgetsExport.hxx
82   YDFXGUIHostParametrizer.hxx
83   YDFXGUIMain.hxx
84   YDFXGUIParametrizer.hxx
85   YDFXGUIPortsSelector.hxx
86   YDFXGUIPortsValidator.hxx
87   YDFXGUIPushButtons.hxx
88   YDFXGUIPyThreadSaver.hxx
89   YDFXGUISeqInit.hxx
90   YDFXGUIWrap.hxx
91   ResourceWidget.hxx
92   AbstractResourceModel.hxx
93   YDFXResourceModel.hxx
94   SalomeResourceModel.hxx
95   )
96
97 SET(ydfxwidgets_SOURCES
98   YDFXGUIHostParametrizer.cxx
99   YDFXGUIMain.cxx
100   YDFXGUIParametrizer.cxx
101   YDFXGUIPortsSelector.cxx
102   YDFXGUIPortsValidator.cxx
103   YDFXGUIPushButtons.cxx
104   YDFXGUIPyThreadSaver.cxx
105   YDFXGUISeqInit.cxx
106   YDFXGUIWrap.cxx
107   YDFXResourceModel.cxx
108   ResourceWidget.cxx
109   SalomeResourceModel.cxx
110   AbstractResourceModel.cxx
111   ${_moc_SOURCES}
112   )
113
114 ADD_LIBRARY(ydfxwidgets ${ydfxwidgets_SOURCES})
115 TARGET_LINK_LIBRARIES(ydfxwidgets ${ydfxwidgets_LIBRARIES})
116 ADD_EXECUTABLE(ydfxgui ydfxgui.cxx)
117 TARGET_LINK_LIBRARIES(ydfxgui ydfxwidgets)
118
119 INSTALL(TARGETS ydfxwidgets EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
120 INSTALL(TARGETS ydfxgui DESTINATION ${SALOME_INSTALL_BINS})
121 INSTALL(FILES ${ydfxwidgets_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})