Salome HOME
5abfb515568dba7569150d42900bb30c39d92290
[modules/jobmanager.git] / src / genericgui / CMakeLists.txt
1 # Copyright (C) 2012-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 # additional include directories
24 INCLUDE_DIRECTORIES(
25   ${QT_INCLUDES}
26   ${OMNIORB_INCLUDE_DIR}
27   ${KERNEL_INCLUDE_DIRS}
28   ${CMAKE_CURRENT_BINARY_DIR}
29   ${PROJECT_BINARY_DIR}/idl
30   ${PROJECT_SOURCE_DIR}/src/bases
31   ${PROJECT_SOURCE_DIR}/src/engine
32   ${PROJECT_SOURCE_DIR}/src/wrappers
33 )
34
35 # additional preprocessor / compiler flags
36 ADD_DEFINITIONS(
37   ${QT_DEFINITIONS}
38   ${OMNIORB_DEFINITIONS}
39 )
40
41 # libraries to link to
42 SET(_link_LIBRARIES
43   ${QT_LIBRARIES}
44   BL_Bases
45   BL_Engine
46 )
47
48 # --- headers ---
49
50 # header files / to be processed by moc
51 SET(BL_GenericGui_HEADERS
52   BL_GenericGui.hxx
53   BL_JobsTable.hxx
54   BL_JobTab.hxx
55   BL_Buttons.hxx 
56   BL_JobsManager_QT.hxx
57   BL_QModelManager.hxx 
58   BL_CreateJobWizard.hxx
59   BL_Summary.hxx 
60   JM_ResourceCatalog.hxx
61   JM_SalomeResource.hxx 
62   JM_EditSalomeResource.hxx
63 )
64
65 # --- sources ---
66
67 # sources / moc wrappings
68 QT4_WRAP_CPP(_moc_SOURCES ${BL_GenericGui_HEADERS})
69
70 # sources / static
71 SET(_other_SOURCES 
72   BL_GenericGui.cxx 
73   BL_JobsTable.cxx 
74   BL_JobTab.cxx
75   BL_Buttons.cxx
76   BL_JobsManager_QT.cxx 
77   BL_QModelManager.cxx 
78   BL_CreateJobWizard.cxx 
79   BL_Summary.cxx 
80   JM_ResourceCatalog.cxx 
81   JM_SalomeResource.cxx 
82   JM_EditSalomeResource.cxx
83 )
84
85 # --- resources ---
86
87 # resource files / to be processed by uic
88 SET(_uic_files
89   ResourceRequirementsWizardPage.ui
90   FilesWizardPage.ui
91   AdvancedParametersWizardPage.ui
92 )
93
94 # header files / uic wrappings
95 QT4_WRAP_UI(_uic_HEADERS ${_uic_files})
96
97 # sources / to compile
98 SET(BL_GenericGui_SOURCES ${_other_SOURCES} ${_moc_SOURCES} ${_uic_HEADERS})
99
100 # --- rules ---
101
102 ADD_LIBRARY(BL_GenericGui ${BL_GenericGui_SOURCES})
103 TARGET_LINK_LIBRARIES(BL_GenericGui ${_link_LIBRARIES} )
104 INSTALL(TARGETS BL_GenericGui EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})