Salome HOME
Update copyrights
[modules/shaper.git] / src / Model / CMakeLists.txt
1 # Copyright (C) 2014-2019  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 INCLUDE(Common)
21
22 SET(PROJECT_HEADERS
23     Model.h
24     Model_Application.h
25     Model_Document.h
26     Model_Objects.h
27     Model_Session.h
28     Model_Data.h
29     Model_AttributeDouble.h
30     Model_AttributeDoubleArray.h
31     Model_AttributeDocRef.h
32     Model_AttributeReference.h
33     Model_AttributeRefAttr.h
34     Model_AttributeRefList.h
35     Model_AttributeRefAttrList.h
36     Model_AttributeBoolean.h
37     Model_AttributeIntArray.h
38     Model_AttributeString.h
39     Model_AttributeStringArray.h
40     Model_AttributeInteger.h
41     Model_AttributeSelection.h
42     Model_AttributeSelectionList.h
43     Model_AttributeTables.h
44     Model_BodyBuilder.h
45     Model_Events.h
46     Model_Expression.h
47     Model_Update.h
48     Model_Validator.h
49     Model_ResultBody.h
50     Model_ResultConstruction.h
51     Model_ResultPart.h
52     Model_ResultField.h
53     Model_ResultGroup.h
54     Model_ResultParameter.h
55     Model_FeatureValidator.h
56     Model_AttributeValidator.h
57 )
58
59 SET(PROJECT_SOURCES
60     Model_Application.cpp
61     Model_Document.cpp
62     Model_Objects.cpp
63     Model_Session.cpp
64     Model_Data.cpp
65     Model_AttributeDouble.cpp
66     Model_AttributeDoubleArray.cpp
67     Model_AttributeDocRef.cpp
68     Model_AttributeReference.cpp
69     Model_AttributeRefAttr.cpp
70     Model_AttributeRefList.cpp
71     Model_AttributeRefAttrList.cpp
72     Model_AttributeBoolean.cpp
73     Model_AttributeIntArray.cpp
74     Model_AttributeString.cpp
75     Model_AttributeStringArray.cpp
76     Model_AttributeInteger.cpp
77     Model_AttributeSelection.cpp
78     Model_AttributeSelectionList.cpp
79     Model_AttributeTables.cpp
80     Model_BodyBuilder.cpp
81     Model_Events.cpp
82     Model_Expression.cpp
83     Model_Update.cpp
84     Model_Validator.cpp
85     Model_ResultBody.cpp
86     Model_ResultConstruction.cpp
87     Model_ResultPart.cpp
88     Model_ResultField.cpp
89     Model_ResultGroup.cpp
90     Model_ResultParameter.cpp
91     Model_FeatureValidator.cpp
92     Model_AttributeValidator.cpp
93 )
94
95 SET(PROJECT_LIBRARIES
96     ModelAPI
97     Events
98     Config
99     Selector
100     GeomData
101     GeomAPI
102     GeomAlgoAPI
103     ModelGeomAlgo
104     ${OpenCASCADE_ApplicationFramework_LIBRARIES}
105 )
106 SET(PROJECT_INCLUDES
107   ../ModelAPI
108   ../Events
109   ../Config
110   ../Selector
111   ../GeomData
112   ../GeomDataAPI
113   ../GeomAlgoAPI
114   ../GeomAPI
115   ../ModelGeomAlgo
116   ${OpenCASCADE_INCLUDE_DIR}
117 )
118
119
120 IF(TKTInspector)
121     ADD_DEFINITIONS(-DTINSPECTOR)
122 ENDIF()
123
124 ADD_DEFINITIONS(-DMODEL_EXPORTS ${OpenCASCADE_DEFINITIONS})
125 ADD_LIBRARY(Model SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
126 TARGET_LINK_LIBRARIES(Model ${PROJECT_LIBRARIES})
127
128 INCLUDE_DIRECTORIES(${PROJECT_INCLUDES})
129
130 INSTALL(TARGETS Model DESTINATION ${SHAPER_INSTALL_BIN})