1 # Copyright (C) 2012-2013 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
95 ADD_LIBRARY(SalomeDSImpl ${SalomeDSImpl_SOURCES})
96 TARGET_LINK_LIBRARIES(SalomeDSImpl SALOMELocalTrace ${COMMON_LIBS} ${PLATFORM_LIBS})
97 INSTALL(TARGETS SalomeDSImpl DESTINATION ${KERNEL_salomelib_LIBS})
99 ADD_EXECUTABLE(testDS testDS.cxx)
100 TARGET_LINK_LIBRARIES(testDS SalomeDSImpl ${COMMON_LIBS} ${PLATFORM_LIBS})
101 INSTALL(TARGETS testDS DESTINATION ${KERNEL_salomebin_BINS})
103 FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
104 SET(NOINST_HEADERS_HXX
105 SALOMEDSImpl_Tool.hxx
106 SALOMEDSImpl_StudyHandle.hxx
108 FOREACH(HEADER ${NOINST_HEADERS_HXX})
109 LIST(REMOVE_ITEM COMMON_HEADERS_HXX ${CMAKE_CURRENT_SOURCE_DIR}/${HEADER})
110 ENDFOREACH(HEADER ${NOINST_HEADERS_HXX})
111 INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${KERNEL_salomeinclude_HEADERS})