Salome HOME
updated copyright message
[modules/kernel.git] / src / SALOMEDSImpl / CMakeLists.txt
1 # Copyright (C) 2012-2023  CEA, EDF, OPEN CASCADE
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 INCLUDE_DIRECTORIES(
21   ${PTHREAD_INCLUDE_DIR}
22   ${HDF5_INCLUDE_DIRS}
23   ${Boost_INCLUDE_DIRS}
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
29   ${PROJECT_BINARY_DIR}
30 )
31
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 dependent libraries common to all target in this package.  
35 SET(COMMON_LIBS
36   SALOMEBasics
37   SalomeHDFPersist
38   DF
39   ${HDF5_C_LIBRARIES}
40 )
41
42 SET(SalomeDSImpl_SOURCES
43   SALOMEDSImpl_Tool.cxx
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_IParameters.cxx
88   SALOMEDSImpl_TMPFile.cxx
89   SALOMEDSImpl_GenericVariable.cxx
90   SALOMEDSImpl_ScalarVariable.cxx
91
92
93 ADD_LIBRARY(SalomeDSImpl ${SalomeDSImpl_SOURCES})
94 TARGET_LINK_LIBRARIES(SalomeDSImpl SALOMELocalTrace ${COMMON_LIBS} ${PLATFORM_LIBS})
95 INSTALL(TARGETS SalomeDSImpl EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
96
97 ADD_EXECUTABLE(testDS testDS.cxx)
98 TARGET_LINK_LIBRARIES(testDS SalomeDSImpl ${COMMON_LIBS} ${PLATFORM_LIBS})
99 INSTALL(TARGETS testDS DESTINATION ${SALOME_INSTALL_BINS})
100
101 FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
102 SET(NOINST_HEADERS_HXX
103   SALOMEDSImpl_Tool.hxx
104   SALOMEDSImpl_StudyHandle.hxx
105 )
106 FOREACH(HEADER ${NOINST_HEADERS_HXX})
107   LIST(REMOVE_ITEM COMMON_HEADERS_HXX ${CMAKE_CURRENT_SOURCE_DIR}/${HEADER})
108 ENDFOREACH(HEADER ${NOINST_HEADERS_HXX})
109 INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${SALOME_INSTALL_HEADERS})