Salome HOME
Issue #1865 : initial implementation of the "Fields" feature and additional attribute...
[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_ResultGroup.h
37     Model_ResultParameter.h
38     Model_FeatureValidator.h
39     Model_AttributeValidator.h
40     Model_SelectionNaming.h
41 )
42
43 SET(PROJECT_SOURCES
44     Model_Application.cpp
45     Model_Document.cpp
46     Model_Objects.cpp
47     Model_Session.cpp
48     Model_Data.cpp
49     Model_AttributeDouble.cpp
50     Model_AttributeDoubleArray.cpp
51     Model_AttributeDocRef.cpp
52     Model_AttributeReference.cpp
53     Model_AttributeRefAttr.cpp
54     Model_AttributeRefList.cpp
55     Model_AttributeRefAttrList.cpp
56     Model_AttributeBoolean.cpp
57     Model_AttributeIntArray.cpp
58     Model_AttributeString.cpp
59     Model_AttributeStringArray.cpp
60     Model_AttributeInteger.cpp
61     Model_AttributeSelection.cpp
62     Model_AttributeSelectionList.cpp
63     Model_AttributeTables.cpp
64     Model_BodyBuilder.cpp
65     Model_Events.cpp
66     Model_Expression.cpp
67     Model_Update.cpp
68     Model_Validator.cpp
69     Model_ResultBody.cpp
70     Model_ResultCompSolid.cpp
71     Model_ResultConstruction.cpp
72     Model_ResultPart.cpp
73     Model_ResultGroup.cpp
74     Model_ResultParameter.cpp
75     Model_FeatureValidator.cpp
76     Model_AttributeValidator.cpp
77     Model_SelectionNaming.cpp
78 )
79
80 SET(PROJECT_LIBRARIES
81     ModelAPI
82     Events
83     Config
84     GeomData
85     GeomAPI
86     GeomAlgoAPI
87     ${CAS_OCAF}
88     ${CAS_TKCAF}
89     ${CAS_SHAPE}
90     ${CAS_TKBO}
91 )
92 SET(PROJECT_INCLUDES
93   ../ModelAPI
94   ../Events
95   ../Config
96   ../GeomData
97   ../GeomDataAPI
98   ../GeomAlgoAPI
99   ../GeomAPI
100   ${CAS_INCLUDE_DIRS}
101 )
102
103
104 IF(EXISTS ${OCAFBROWSER_ROOT_DIR})
105     SET(PROJECT_LIBRARIES ${PROJECT_LIBRARIES} ${DFBrowserAPI})
106     SET(PROJECT_INCLUDES ${PROJECT_INCLUDES} ${OCAFBROWSER_INCLUDE_DIR})
107
108     ADD_DEFINITIONS(-DOCAFBROWSER)
109 ENDIF()
110
111 ADD_DEFINITIONS(-DMODEL_EXPORTS ${CAS_DEFINITIONS})
112 ADD_LIBRARY(Model SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
113 TARGET_LINK_LIBRARIES(Model ${PROJECT_LIBRARIES})
114
115 INCLUDE_DIRECTORIES(${PROJECT_INCLUDES})
116
117 INSTALL(TARGETS Model DESTINATION ${SHAPER_INSTALL_BIN})