Salome HOME
Copyrights update 2015.
[modules/yacs.git] / src / engine / CMakeLists.txt
1 # Copyright (C) 2012-2015  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   )
103
104 # --- sources ---
105
106 SET(YACSlibEngine_SOURCES
107   PropertyInterface.cxx
108   TypeCode.cxx
109   RefCounter.cxx
110   LinkInfo.cxx
111   ConversionException.cxx
112   InvalidExtractionException.cxx
113   ConditionInputPort.cxx
114   AnyInputPort.cxx
115   AnyOutputPort.cxx
116   Port.cxx InGate.cxx
117   OutGate.cxx
118   DataPort.cxx
119   DataFlowPort.cxx
120   InPort.cxx
121   OutPort.cxx
122   InputPort.cxx
123   OutputPort.cxx
124   DataStreamPort.cxx
125   InputDataStreamPort.cxx
126   OutputDataStreamPort.cxx
127   Any.cxx
128   Pool.cxx
129   Node.cxx
130   ElementaryNode.cxx
131   ComposedNode.cxx
132   InlineNode.cxx
133   ServiceNode.cxx
134   ServerNode.cxx
135   ServiceInlineNode.cxx
136   StaticDefinedComposedNode.cxx
137   Bloc.cxx
138   Proc.cxx
139   Loop.cxx
140   ForLoop.cxx
141   WhileLoop.cxx
142   Switch.cxx
143   DynParaLoop.cxx
144   ForEachLoop.cxx
145   OptimizerAlg.cxx
146   OptimizerLoop.cxx
147   Runtime.cxx
148   Scheduler.hxx
149   Task.hxx
150   Executor.cxx
151   Visitor.cxx
152   VisitorSaveState.cxx
153   VisitorSaveSchema.cxx
154   ComponentInstance.cxx
155   Dispatcher.cxx
156   Container.cxx
157   HomogeneousPoolContainer.cxx
158   DeploymentTree.cxx
159   Logger.cxx
160   LogRecord.cxx
161   Catalog.cxx
162   ComponentDefinition.cxx
163   DataNode.cxx
164   Task.cxx
165   Scheduler.cxx
166   InPropertyPort.cxx
167   )
168
169 # --- rules ---
170
171 ADD_LIBRARY(YACSlibEngine ${YACSlibEngine_SOURCES})
172 TARGET_LINK_LIBRARIES(YACSlibEngine ${_link_LIBRARIES})
173 INSTALL(TARGETS YACSlibEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
174
175 INSTALL(FILES ${YACSlibEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})