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