Salome HOME
Issue #1865 : initial implementation of fields results and high level API
[modules/shaper.git] / src / Model / CMakeLists.txt
1 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 INCLUDE(Common)
4
5 SET(PROJECT_HEADERS
6     Model.h
7     Model_Application.h
8     Model_Document.h
9     Model_Objects.h
10     Model_Session.h
11     Model_Data.h
12     Model_AttributeDouble.h
13     Model_AttributeDoubleArray.h
14     Model_AttributeDocRef.h
15     Model_AttributeReference.h
16     Model_AttributeRefAttr.h
17     Model_AttributeRefList.h
18     Model_AttributeRefAttrList.h
19     Model_AttributeBoolean.h
20     Model_AttributeIntArray.h
21     Model_AttributeString.h
22     Model_AttributeStringArray.h
23     Model_AttributeInteger.h
24     Model_AttributeSelection.h
25     Model_AttributeSelectionList.h
26     Model_AttributeTables.h
27     Model_BodyBuilder.h
28     Model_Events.h
29     Model_Expression.h
30     Model_Update.h
31     Model_Validator.h
32     Model_ResultBody.h
33     Model_ResultCompSolid.h
34     Model_ResultConstruction.h
35     Model_ResultPart.h
36     Model_ResultField.h
37     Model_ResultGroup.h
38     Model_ResultParameter.h
39     Model_FeatureValidator.h
40     Model_AttributeValidator.h
41     Model_SelectionNaming.h
42 )
43
44 SET(PROJECT_SOURCES
45     Model_Application.cpp
46     Model_Document.cpp
47     Model_Objects.cpp
48     Model_Session.cpp
49     Model_Data.cpp
50     Model_AttributeDouble.cpp
51     Model_AttributeDoubleArray.cpp
52     Model_AttributeDocRef.cpp
53     Model_AttributeReference.cpp
54     Model_AttributeRefAttr.cpp
55     Model_AttributeRefList.cpp
56     Model_AttributeRefAttrList.cpp
57     Model_AttributeBoolean.cpp
58     Model_AttributeIntArray.cpp
59     Model_AttributeString.cpp
60     Model_AttributeStringArray.cpp
61     Model_AttributeInteger.cpp
62     Model_AttributeSelection.cpp
63     Model_AttributeSelectionList.cpp
64     Model_AttributeTables.cpp
65     Model_BodyBuilder.cpp
66     Model_Events.cpp
67     Model_Expression.cpp
68     Model_Update.cpp
69     Model_Validator.cpp
70     Model_ResultBody.cpp
71     Model_ResultCompSolid.cpp
72     Model_ResultConstruction.cpp
73     Model_ResultPart.cpp
74     Model_ResultField.cpp
75     Model_ResultGroup.cpp
76     Model_ResultParameter.cpp
77     Model_FeatureValidator.cpp
78     Model_AttributeValidator.cpp
79     Model_SelectionNaming.cpp
80 )
81
82 SET(PROJECT_LIBRARIES
83     ModelAPI
84     Events
85     Config
86     GeomData
87     GeomAPI
88     GeomAlgoAPI
89     ${CAS_OCAF}
90     ${CAS_TKCAF}
91     ${CAS_SHAPE}
92     ${CAS_TKBO}
93 )
94 SET(PROJECT_INCLUDES
95   ../ModelAPI
96   ../Events
97   ../Config
98   ../GeomData
99   ../GeomDataAPI
100   ../GeomAlgoAPI
101   ../GeomAPI
102   ${CAS_INCLUDE_DIRS}
103 )
104
105
106 IF(EXISTS ${OCAFBROWSER_ROOT_DIR})
107     SET(PROJECT_LIBRARIES ${PROJECT_LIBRARIES} ${DFBrowserAPI})
108     SET(PROJECT_INCLUDES ${PROJECT_INCLUDES} ${OCAFBROWSER_INCLUDE_DIR})
109
110     ADD_DEFINITIONS(-DOCAFBROWSER)
111 ENDIF()
112
113 ADD_DEFINITIONS(-DMODEL_EXPORTS ${CAS_DEFINITIONS})
114 ADD_LIBRARY(Model SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
115 TARGET_LINK_LIBRARIES(Model ${PROJECT_LIBRARIES})
116
117 INCLUDE_DIRECTORIES(${PROJECT_INCLUDES})
118
119 INSTALL(TARGETS Model DESTINATION ${SHAPER_INSTALL_BIN})