Salome HOME
Solve problem of non install of includes of src/engine/.hxx into install/include...
[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   #PARENT_SCOPE  # Make it visible to src/engine_swig to handle dependencies 
111   )
112
113 # --- sources ---
114
115 SET(YACSlibEngine_SOURCES
116   PropertyInterface.cxx
117   TypeCode.cxx
118   RefCounter.cxx
119   LinkInfo.cxx
120   ConversionException.cxx
121   InvalidExtractionException.cxx
122   ConditionInputPort.cxx
123   AnyInputPort.cxx
124   AnyOutputPort.cxx
125   Port.cxx InGate.cxx
126   OutGate.cxx
127   DataPort.cxx
128   DataFlowPort.cxx
129   InPort.cxx
130   OutPort.cxx
131   InputPort.cxx
132   OutputPort.cxx
133   DataStreamPort.cxx
134   InputDataStreamPort.cxx
135   OutputDataStreamPort.cxx
136   Any.cxx
137   Pool.cxx
138   Node.cxx
139   ElementaryNode.cxx
140   ComposedNode.cxx
141   InlineNode.cxx
142   ServiceNode.cxx
143   ServerNode.cxx
144   ServiceInlineNode.cxx
145   StaticDefinedComposedNode.cxx
146   Bloc.cxx
147   Proc.cxx
148   Loop.cxx
149   ForLoop.cxx
150   WhileLoop.cxx
151   Switch.cxx
152   DynParaLoop.cxx
153   ForEachLoop.cxx
154   OptimizerAlg.cxx
155   OptimizerLoop.cxx
156   Runtime.cxx
157   Scheduler.hxx
158   Task.hxx
159   Executor.cxx
160   Visitor.cxx
161   VisitorSaveState.cxx
162   VisitorSaveSchema.cxx
163   ComponentInstance.cxx
164   Dispatcher.cxx
165   Container.cxx
166   HomogeneousPoolContainer.cxx
167   DeploymentTree.cxx
168   Logger.cxx
169   LogRecord.cxx
170   Catalog.cxx
171   ComponentDefinition.cxx
172   DataNode.cxx
173   Task.cxx
174   Scheduler.cxx
175   InPropertyPort.cxx
176   AbstractPoint.cxx
177   BlocPoint.cxx
178   BagPoint.cxx
179   ForkBlocPoint.cxx
180   LinkedBlocPoint.cxx
181   ElementaryPoint.cxx
182   SetOfPoints.cxx
183   )
184
185 # --- rules ---
186
187 ADD_LIBRARY(YACSlibEngine ${YACSlibEngine_SOURCES})
188 TARGET_LINK_LIBRARIES(YACSlibEngine ${_link_LIBRARIES})
189 INSTALL(TARGETS YACSlibEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
190
191 INSTALL(FILES ${YACSlibEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})