Salome HOME
Save foreach state - work in progress.
[modules/yacs.git] / src / engine / 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 IF(SALOME_BUILD_TESTS)
21   ADD_SUBDIRECTORY(Plugin)
22   ADD_SUBDIRECTORY(Test)
23 ENDIF(SALOME_BUILD_TESTS)
24
25 # --- options ---
26
27 # additional include directories
28 INCLUDE_DIRECTORIES(
29   ${PTHREAD_INCLUDE_DIR}
30   ${PROJECT_SOURCE_DIR}/src/bases
31   )
32
33 # libraries to link to
34 SET(_link_LIBRARIES
35   ${PTHREAD_LIBRARIES}
36   YACSBases
37   )
38
39 # --- headers ---
40
41 SET(YACSlibEngine_HEADERS
42   YACSlibEngineExport.hxx
43   Any.hxx
44   AnyInputPort.hxx
45   Bloc.hxx
46   Catalog.hxx
47   ComponentDefinition.hxx
48   ComponentInstance.hxx
49   ComposedNode.hxx
50   ConditionInputPort.hxx
51   Container.hxx
52   ConversionException.hxx
53   DataFlowPort.hxx
54   DataNode.hxx
55   DataPort.hxx
56   DataStreamPort.hxx
57   DeploymentTree.hxx
58   Dispatcher.hxx
59   DynParaLoop.hxx
60   ElementaryNode.hxx
61   Executor.hxx
62   ForEachLoop.hxx
63   ForLoop.hxx
64   InGate.hxx
65   InlineNode.hxx
66   InPort.hxx
67   InputDataStreamPort.hxx
68   InputPort.hxx
69   InvalidExtractionException.hxx
70   LinkInfo.hxx
71   Logger.hxx
72   LogRecord.hxx
73   Loop.hxx
74   Node.hxx
75   OptimizerAlg.hxx
76   OptimizerLoop.hxx
77   OutGate.hxx
78   OutPort.hxx
79   OutputDataStreamPort.hxx
80   OutputPort.hxx
81   Pool.hxx
82   Port.hxx
83   Proc.hxx
84   RefCounter.hxx
85   Runtime.hxx
86   Scheduler.hxx
87   ServiceInlineNode.hxx
88   ServiceNode.hxx
89   SharedPtr.hxx
90   StaticDefinedComposedNode.hxx
91   Switch.hxx
92   Task.hxx
93   TypeCode.hxx
94   Visitor.hxx
95   VisitorSaveSchema.hxx
96   VisitorSaveState.hxx
97   WhileLoop.hxx
98   PropertyInterface.hxx
99   AnyOutputPort.hxx
100   ServerNode.hxx
101   InPropertyPort.hxx
102   AbstractPoint.hxx
103   BlocPoint.hxx
104   BagPoint.hxx
105   ForkBlocPoint.hxx
106   LinkedBlocPoint.hxx
107   ElementaryPoint.hxx
108   SetOfPoints.hxx
109   )
110
111 # --- sources ---
112
113 SET(YACSlibEngine_SOURCES
114   PropertyInterface.cxx
115   TypeCode.cxx
116   RefCounter.cxx
117   LinkInfo.cxx
118   ConversionException.cxx
119   InvalidExtractionException.cxx
120   ConditionInputPort.cxx
121   AnyInputPort.cxx
122   AnyOutputPort.cxx
123   Port.cxx InGate.cxx
124   OutGate.cxx
125   DataPort.cxx
126   DataFlowPort.cxx
127   InPort.cxx
128   OutPort.cxx
129   InputPort.cxx
130   OutputPort.cxx
131   DataStreamPort.cxx
132   InputDataStreamPort.cxx
133   OutputDataStreamPort.cxx
134   Any.cxx
135   Pool.cxx
136   Node.cxx
137   ElementaryNode.cxx
138   ComposedNode.cxx
139   InlineNode.cxx
140   ServiceNode.cxx
141   ServerNode.cxx
142   ServiceInlineNode.cxx
143   StaticDefinedComposedNode.cxx
144   Bloc.cxx
145   Proc.cxx
146   Loop.cxx
147   ForLoop.cxx
148   WhileLoop.cxx
149   Switch.cxx
150   DynParaLoop.cxx
151   ForEachLoop.cxx
152   OptimizerAlg.cxx
153   OptimizerLoop.cxx
154   Runtime.cxx
155   Scheduler.hxx
156   Task.hxx
157   Executor.cxx
158   Visitor.cxx
159   VisitorSaveState.cxx
160   VisitorSaveSchema.cxx
161   ComponentInstance.cxx
162   Dispatcher.cxx
163   Container.cxx
164   HomogeneousPoolContainer.cxx
165   DeploymentTree.cxx
166   Logger.cxx
167   LogRecord.cxx
168   Catalog.cxx
169   ComponentDefinition.cxx
170   DataNode.cxx
171   Task.cxx
172   Scheduler.cxx
173   InPropertyPort.cxx
174   AbstractPoint.cxx
175   BlocPoint.cxx
176   BagPoint.cxx
177   ForkBlocPoint.cxx
178   LinkedBlocPoint.cxx
179   ElementaryPoint.cxx
180   SetOfPoints.cxx
181   )
182 SET(YACSlibEngine_HEADERS ${YACSlibEngine_HEADERS} PARENT_SCOPE)  # Make it visible to src/engine_swig to handle dependencies
183
184 # --- rules ---
185
186 ADD_LIBRARY(YACSlibEngine ${YACSlibEngine_SOURCES})
187 TARGET_LINK_LIBRARIES(YACSlibEngine ${_link_LIBRARIES})
188 INSTALL(TARGETS YACSlibEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
189
190 INSTALL(FILES ${YACSlibEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})