1 # Copyright (C) 2012 CEA/DEN, EDF R&D, OPEN CASCADE
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.
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.
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
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 ${PTHREAD_INCLUDE_DIRS}
24 ${CMAKE_BINARY_DIR}/salome_adm
25 ${CMAKE_CURRENT_SOURCE_DIR}/../Basics
26 ${CMAKE_CURRENT_SOURCE_DIR}/../SALOMELocalTrace
27 ${CMAKE_CURRENT_SOURCE_DIR}/../HDFPersist
28 ${CMAKE_CURRENT_SOURCE_DIR}/../DF
32 # This local variable defines the list of FLAGS common to all target in this package.
33 ADD_DEFINITIONS(${HDF5_DEFINITIONS} ${BOOST_DEFINITIONS})
35 # This local variable defines the list of dependant libraries common to all target in this package.
43 SET(SalomeDSImpl_SOURCES
45 SALOMEDSImpl_Callback.cxx
46 SALOMEDSImpl_StudyHandle.cxx
47 SALOMEDSImpl_GenericAttribute.cxx
48 SALOMEDSImpl_SObject.cxx
49 SALOMEDSImpl_SComponent.cxx
50 SALOMEDSImpl_ChildIterator.cxx
51 SALOMEDSImpl_AttributeIOR.cxx
52 SALOMEDSImpl_AttributeExternalFileDef.cxx
53 SALOMEDSImpl_AttributeFileType.cxx
54 SALOMEDSImpl_AttributePersistentRef.cxx
55 SALOMEDSImpl_AttributeSequenceOfReal.cxx
56 SALOMEDSImpl_AttributeSequenceOfInteger.cxx
57 SALOMEDSImpl_AttributeDrawable.cxx
58 SALOMEDSImpl_AttributeSelectable.cxx
59 SALOMEDSImpl_AttributeExpandable.cxx
60 SALOMEDSImpl_AttributeOpened.cxx
61 SALOMEDSImpl_AttributeFlags.cxx
62 SALOMEDSImpl_AttributeGraphic.cxx
63 SALOMEDSImpl_AttributeTextColor.cxx
64 SALOMEDSImpl_AttributeTextHighlightColor.cxx
65 SALOMEDSImpl_AttributePixMap.cxx
66 SALOMEDSImpl_AttributeLocalID.cxx
67 SALOMEDSImpl_AttributeTarget.cxx
68 SALOMEDSImpl_AttributeTableOfInteger.cxx
69 SALOMEDSImpl_AttributeTableOfReal.cxx
70 SALOMEDSImpl_AttributeTableOfString.cxx
71 SALOMEDSImpl_AttributeStudyProperties.cxx
72 SALOMEDSImpl_AttributePythonObject.cxx
73 SALOMEDSImpl_AttributeReal.cxx
74 SALOMEDSImpl_AttributeInteger.cxx
75 SALOMEDSImpl_AttributeUserID.cxx
76 SALOMEDSImpl_AttributeTreeNode.cxx
77 SALOMEDSImpl_AttributeName.cxx
78 SALOMEDSImpl_AttributeComment.cxx
79 SALOMEDSImpl_AttributeReference.cxx
80 SALOMEDSImpl_AttributeParameter.cxx
81 SALOMEDSImpl_AttributeString.cxx
82 SALOMEDSImpl_ChildNodeIterator.cxx
83 SALOMEDSImpl_UseCaseBuilder.cxx
84 SALOMEDSImpl_UseCaseIterator.cxx
85 SALOMEDSImpl_SComponentIterator.cxx
86 SALOMEDSImpl_StudyBuilder.cxx
87 SALOMEDSImpl_Study.cxx
88 SALOMEDSImpl_StudyManager.cxx
89 SALOMEDSImpl_IParameters.cxx
90 SALOMEDSImpl_TMPFile.cxx
91 SALOMEDSImpl_GenericVariable.cxx
92 SALOMEDSImpl_ScalarVariable.cxx
93 SALOMEDSImpl_AttributeComment.hxx
94 SALOMEDSImpl_AttributeDrawable.hxx
95 SALOMEDSImpl_AttributeExpandable.hxx
96 SALOMEDSImpl_AttributeExternalFileDef.hxx
97 SALOMEDSImpl_AttributeFileType.hxx
98 SALOMEDSImpl_AttributeFlags.hxx
99 SALOMEDSImpl_AttributeGraphic.hxx
100 SALOMEDSImpl_AttributeInteger.hxx
101 SALOMEDSImpl_AttributeIOR.hxx
102 SALOMEDSImpl_AttributeLocalID.hxx
103 SALOMEDSImpl_AttributeName.hxx
104 SALOMEDSImpl_AttributeOpened.hxx
105 SALOMEDSImpl_AttributePersistentRef.hxx
106 SALOMEDSImpl_AttributePixMap.hxx
107 SALOMEDSImpl_AttributePythonObject.hxx
108 SALOMEDSImpl_AttributeReal.hxx
109 SALOMEDSImpl_AttributeReference.hxx
110 SALOMEDSImpl_AttributeSelectable.hxx
111 SALOMEDSImpl_AttributeSequenceOfInteger.hxx
112 SALOMEDSImpl_AttributeSequenceOfReal.hxx
113 SALOMEDSImpl_Attributes.hxx
114 SALOMEDSImpl_AttributeStudyProperties.hxx
115 SALOMEDSImpl_AttributeTable.hxx
116 SALOMEDSImpl_AttributeTableOfInteger.hxx
117 SALOMEDSImpl_AttributeTableOfReal.hxx
118 SALOMEDSImpl_AttributeTableOfString.hxx
119 SALOMEDSImpl_AttributeTarget.hxx
120 SALOMEDSImpl_AttributeTextColor.hxx
121 SALOMEDSImpl_AttributeTextHighlightColor.hxx
122 SALOMEDSImpl_AttributeTreeNode.hxx
123 SALOMEDSImpl_AttributeUserID.hxx
124 SALOMEDSImpl_AttributeParameter.hxx
125 SALOMEDSImpl_AttributeString.hxx
126 SALOMEDSImpl_Callback.hxx
127 SALOMEDSImpl_ChildIterator.hxx
128 SALOMEDSImpl_ChildNodeIterator.hxx
129 SALOMEDSImpl_Defines.hxx
130 SALOMEDSImpl_Driver.hxx
131 SALOMEDSImpl_GenericAttribute.hxx
132 SALOMEDSImpl_SComponent.hxx
133 SALOMEDSImpl_SComponentIterator.hxx
134 SALOMEDSImpl_SObject.hxx
135 SALOMEDSImpl_StudyBuilder.hxx
136 SALOMEDSImpl_StudyHandle.hxx
137 SALOMEDSImpl_Study.hxx
138 SALOMEDSImpl_StudyManager.hxx
139 SALOMEDSImpl_Tool.hxx
140 SALOMEDSImpl_UseCaseBuilder.hxx
141 SALOMEDSImpl_UseCaseIterator.hxx
142 SALOMEDSImpl_GenericVariable.hxx
143 SALOMEDSImpl_ScalarVariable.hxx
146 ADD_LIBRARY(SalomeDSImpl ${SalomeDSImpl_SOURCES})
147 TARGET_LINK_LIBRARIES(SalomeDSImpl SALOMELocalTrace ${COMMON_LIBS} ${PLATFORM_LIBS})
148 INSTALL(TARGETS SalomeDSImpl DESTINATION ${KERNEL_salomelib_LIBS})
150 ADD_EXECUTABLE(testDS testDS.cxx)
151 TARGET_LINK_LIBRARIES(testDS SalomeDSImpl ${COMMON_LIBS} ${PLATFORM_LIBS})
152 INSTALL(TARGETS testDS DESTINATION ${KERNEL_salomebin_BINS})
154 FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
155 SET(NOINST_HEADERS_HXX
156 SALOMEDSImpl_Tool.hxx
157 SALOMEDSImpl_StudyHandle.hxx
159 FOREACH(HEADER ${NOINST_HEADERS_HXX})
160 LIST(REMOVE_ITEM COMMON_HEADERS_HXX ${CMAKE_CURRENT_SOURCE_DIR}/${HEADER})
161 ENDFOREACH(HEADER ${NOINST_HEADERS_HXX})
162 INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${KERNEL_salomeinclude_HEADERS})