Salome HOME
Merge from V6_main 11/02/2013
[modules/kernel.git] / src / SALOMEDS / CMakeLists.txt
1 # Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
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.
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_DIRECTORIES(
21   ${PTHREAD_INCLUDE_DIRS}
22   ${OMNIORB_INCLUDE_DIR}
23   ${HDF5_INCLUDE_DIRS}
24   ${Boost_INCLUDE_DIRS}
25   ${CMAKE_BINARY_DIR}/salome_adm
26   ${CMAKE_CURRENT_SOURCE_DIR}/../HDFPersist
27   ${CMAKE_CURRENT_SOURCE_DIR}/../Basics
28   ${CMAKE_CURRENT_SOURCE_DIR}/../SALOMELocalTrace
29   ${CMAKE_CURRENT_SOURCE_DIR}/../Utils
30   ${CMAKE_CURRENT_SOURCE_DIR}/../DF
31   ${CMAKE_CURRENT_SOURCE_DIR}/../SALOMEDSImpl
32   ${CMAKE_CURRENT_SOURCE_DIR}/../NamingService
33   ${CMAKE_CURRENT_SOURCE_DIR}/../GenericObj
34   ${CMAKE_CURRENT_SOURCE_DIR}/../SALOMEDSClient
35   ${CMAKE_CURRENT_SOURCE_DIR}/../LifeCycleCORBA
36   ${CMAKE_BINARY_DIR}/idl
37 )
38
39 ADD_DEFINITIONS(${OMNIORB_DEFINITIONS} ${HDF5_DEFINITIONS} ${BOOST_DEFINITIONS})
40 IF(WINDOWS)
41   ADD_DEFINITIONS(-DNOGDI)
42 ENDIF(WINDOWS)
43
44 SET(COMMON_LIBS
45   TOOLSDS
46   SalomeNS
47   OpUtil
48   SALOMELocalTrace
49   SALOMEBasics
50   SalomeHDFPersist
51   DF
52   SalomeDSImpl
53   SalomeGenericObj
54   SalomeLifeCycleCORBA
55   SalomeIDLKernel
56   ${HDF5_C_LIBRARIES}
57 )
58
59 SET(SalomeDS_SOURCES
60   SALOMEDS.cxx
61   SALOMEDS_Driver_i.cxx
62   SALOMEDS_StudyManager_i.cxx
63   SALOMEDS_UseCaseBuilder_i.cxx
64   SALOMEDS_UseCaseIterator_i.cxx
65   SALOMEDS_ChildIterator_i.cxx
66   SALOMEDS_SComponentIterator_i.cxx
67   SALOMEDS_Study_i.cxx
68   SALOMEDS_StudyBuilder_i.cxx
69   SALOMEDS_SObject_i.cxx
70   SALOMEDS_SComponent_i.cxx
71   SALOMEDS_GenericAttribute_i.cxx
72   SALOMEDS_AttributeComment_i.cxx
73   SALOMEDS_AttributeExternalFileDef_i.cxx
74   SALOMEDS_AttributeFileType_i.cxx
75   SALOMEDS_AttributeIOR_i.cxx
76   SALOMEDS_AttributeInteger_i.cxx
77   SALOMEDS_AttributeName_i.cxx
78   SALOMEDS_AttributePersistentRef_i.cxx
79   SALOMEDS_AttributeReal_i.cxx
80   SALOMEDS_AttributeSequenceOfReal_i.cxx
81   SALOMEDS_AttributeSequenceOfInteger_i.cxx
82   SALOMEDS_AttributeDrawable_i.cxx
83   SALOMEDS_AttributeSelectable_i.cxx
84   SALOMEDS_AttributeOpened_i.cxx
85   SALOMEDS_AttributeFlags_i.cxx
86   SALOMEDS_AttributeGraphic_i.cxx
87   SALOMEDS_AttributeExpandable_i.cxx
88   SALOMEDS_AttributeTextColor_i.cxx
89   SALOMEDS_AttributeTextHighlightColor_i.cxx
90   SALOMEDS_AttributePixMap_i.cxx
91   SALOMEDS_AttributeTreeNode_i.cxx
92   SALOMEDS_AttributeLocalID_i.cxx
93   SALOMEDS_AttributeUserID_i.cxx
94   SALOMEDS_AttributeTarget_i.cxx
95   SALOMEDS_AttributeTableOfInteger_i.cxx
96   SALOMEDS_AttributeTableOfReal_i.cxx
97   SALOMEDS_AttributeTableOfString_i.cxx
98   SALOMEDS_AttributeStudyProperties_i.cxx
99   SALOMEDS_AttributePythonObject_i.cxx
100   SALOMEDS_AttributeParameter_i.cxx
101   SALOMEDS_AttributeString_i.cxx
102   SALOMEDS_SObject.cxx
103   SALOMEDS_SComponent.cxx
104   SALOMEDS_GenericAttribute.cxx
105   SALOMEDS_ChildIterator.cxx
106   SALOMEDS_SComponentIterator.cxx
107   SALOMEDS_UseCaseIterator.cxx
108   SALOMEDS_UseCaseBuilder.cxx
109   SALOMEDS_StudyBuilder.cxx
110   SALOMEDS_Study.cxx
111   SALOMEDS_StudyManager.cxx
112   SALOMEDS_AttributeStudyProperties.cxx
113   SALOMEDS_AttributeComment.cxx
114   SALOMEDS_AttributeDrawable.cxx
115   SALOMEDS_AttributeExpandable.cxx
116   SALOMEDS_AttributeExternalFileDef.cxx
117   SALOMEDS_AttributeFileType.cxx
118   SALOMEDS_AttributeFlags.cxx
119   SALOMEDS_AttributeGraphic.cxx
120   SALOMEDS_AttributeIOR.cxx
121   SALOMEDS_AttributeInteger.cxx
122   SALOMEDS_AttributeLocalID.cxx
123   SALOMEDS_AttributeName.cxx
124   SALOMEDS_AttributeOpened.cxx
125   SALOMEDS_AttributePythonObject.cxx
126   SALOMEDS_AttributeReal.cxx
127   SALOMEDS_AttributeSelectable.cxx
128   SALOMEDS_AttributeSequenceOfInteger.cxx
129   SALOMEDS_AttributePersistentRef.cxx
130   SALOMEDS_AttributePixMap.cxx
131   SALOMEDS_AttributeSequenceOfReal.cxx
132   SALOMEDS_AttributeTableOfInteger.cxx
133   SALOMEDS_AttributeTableOfReal.cxx
134   SALOMEDS_AttributeTableOfString.cxx
135   SALOMEDS_AttributeTarget.cxx
136   SALOMEDS_AttributeTextColor.cxx
137   SALOMEDS_AttributeTextHighlightColor.cxx
138   SALOMEDS_AttributeTreeNode.cxx
139   SALOMEDS_AttributeUserID.cxx
140   SALOMEDS_TMPFile_i.cxx
141   SALOMEDS_AttributeParameter.cxx
142   SALOMEDS_AttributeString.cxx
143   SALOMEDS_IParameters.cxx
144 )
145
146
147 ADD_LIBRARY(SalomeDS ${SalomeDS_SOURCES})
148 TARGET_LINK_LIBRARIES(SalomeDS ${COMMON_LIBS})
149 INSTALL(TARGETS SalomeDS DESTINATION ${KERNEL_salomelib_LIBS})
150
151 ADD_EXECUTABLE(SALOMEDS_Server SALOMEDS_Server.cxx)
152 TARGET_LINK_LIBRARIES(SALOMEDS_Server SalomeDS SALOMEBasics ${COMMON_LIBS} ${OMNIORB_LIBRARIES})
153
154 ADD_EXECUTABLE(SALOMEDS_Client SALOMEDS_Client.cxx)
155 TARGET_LINK_LIBRARIES(SALOMEDS_Client SalomeDS SALOMEBasics ${COMMON_LIBS} ${OMNIORB_LIBRARIES})
156
157 INSTALL(TARGETS SALOMEDS_Server SALOMEDS_Client DESTINATION ${KERNEL_salomebin_BINS})
158
159 # Executable scripts to be installed
160 SALOME_INSTALL_SCRIPTS(SALOME_DriverPy.py ${KERNEL_salomescript_PYTHON})
161
162 SET(COMMON_HEADERS_HXX 
163   SALOMEDS_StudyManager_i.hxx
164   SALOMEDS_Driver_i.hxx
165   SALOMEDS_StudyManager.hxx
166   SALOMEDS_Study_i.hxx
167   SALOMEDS_Study.hxx
168   SALOMEDS_SObject_i.hxx
169   SALOMEDS_SObject.hxx
170   SALOMEDS_SComponent_i.hxx
171   SALOMEDS_SComponent.hxx
172   SALOMEDS_GenericAttribute_i.hxx
173   SALOMEDS_GenericAttribute.hxx
174   SALOMEDS_IParameters.hxx
175   SALOMEDS_Defines.hxx
176   SALOMEDS_wrap.hxx
177   SALOMEDS_Attributes_wrap.hxx
178 )
179 INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${KERNEL_salomeinclude_HEADERS})