1 # Copyright (C) 2012-2016 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, or (at your option) any later version.
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_DIR}
24 ${PROJECT_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(${BOOST_DEFINITIONS})
34 # This local variable defines the list of dependant libraries common to all target in this package.
42 SET(SalomeDSImpl_SOURCES
44 SALOMEDSImpl_Callback.cxx
45 SALOMEDSImpl_StudyHandle.cxx
46 SALOMEDSImpl_GenericAttribute.cxx
47 SALOMEDSImpl_SObject.cxx
48 SALOMEDSImpl_SComponent.cxx
49 SALOMEDSImpl_ChildIterator.cxx
50 SALOMEDSImpl_AttributeIOR.cxx
51 SALOMEDSImpl_AttributeExternalFileDef.cxx
52 SALOMEDSImpl_AttributeFileType.cxx
53 SALOMEDSImpl_AttributePersistentRef.cxx
54 SALOMEDSImpl_AttributeSequenceOfReal.cxx
55 SALOMEDSImpl_AttributeSequenceOfInteger.cxx
56 SALOMEDSImpl_AttributeDrawable.cxx
57 SALOMEDSImpl_AttributeSelectable.cxx
58 SALOMEDSImpl_AttributeExpandable.cxx
59 SALOMEDSImpl_AttributeOpened.cxx
60 SALOMEDSImpl_AttributeFlags.cxx
61 SALOMEDSImpl_AttributeGraphic.cxx
62 SALOMEDSImpl_AttributeTextColor.cxx
63 SALOMEDSImpl_AttributeTextHighlightColor.cxx
64 SALOMEDSImpl_AttributePixMap.cxx
65 SALOMEDSImpl_AttributeLocalID.cxx
66 SALOMEDSImpl_AttributeTarget.cxx
67 SALOMEDSImpl_AttributeTableOfInteger.cxx
68 SALOMEDSImpl_AttributeTableOfReal.cxx
69 SALOMEDSImpl_AttributeTableOfString.cxx
70 SALOMEDSImpl_AttributeStudyProperties.cxx
71 SALOMEDSImpl_AttributePythonObject.cxx
72 SALOMEDSImpl_AttributeReal.cxx
73 SALOMEDSImpl_AttributeInteger.cxx
74 SALOMEDSImpl_AttributeUserID.cxx
75 SALOMEDSImpl_AttributeTreeNode.cxx
76 SALOMEDSImpl_AttributeName.cxx
77 SALOMEDSImpl_AttributeComment.cxx
78 SALOMEDSImpl_AttributeReference.cxx
79 SALOMEDSImpl_AttributeParameter.cxx
80 SALOMEDSImpl_AttributeString.cxx
81 SALOMEDSImpl_ChildNodeIterator.cxx
82 SALOMEDSImpl_UseCaseBuilder.cxx
83 SALOMEDSImpl_UseCaseIterator.cxx
84 SALOMEDSImpl_SComponentIterator.cxx
85 SALOMEDSImpl_StudyBuilder.cxx
86 SALOMEDSImpl_Study.cxx
87 SALOMEDSImpl_StudyManager.cxx
88 SALOMEDSImpl_IParameters.cxx
89 SALOMEDSImpl_TMPFile.cxx
90 SALOMEDSImpl_GenericVariable.cxx
91 SALOMEDSImpl_ScalarVariable.cxx
94 ADD_LIBRARY(SalomeDSImpl ${SalomeDSImpl_SOURCES})
95 TARGET_LINK_LIBRARIES(SalomeDSImpl SALOMELocalTrace ${COMMON_LIBS} ${PLATFORM_LIBS})
96 INSTALL(TARGETS SalomeDSImpl EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
98 ADD_EXECUTABLE(testDS testDS.cxx)
99 TARGET_LINK_LIBRARIES(testDS SalomeDSImpl ${COMMON_LIBS} ${PLATFORM_LIBS})
100 INSTALL(TARGETS testDS DESTINATION ${SALOME_INSTALL_BINS})
102 FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
103 SET(NOINST_HEADERS_HXX
104 SALOMEDSImpl_Tool.hxx
105 SALOMEDSImpl_StudyHandle.hxx
107 FOREACH(HEADER ${NOINST_HEADERS_HXX})
108 LIST(REMOVE_ITEM COMMON_HEADERS_HXX ${CMAKE_CURRENT_SOURCE_DIR}/${HEADER})
109 ENDFOREACH(HEADER ${NOINST_HEADERS_HXX})
110 INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${SALOME_INSTALL_HEADERS})