Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / Model / CMakeLists.txt
1 INCLUDE(Common)
2
3 SET(PROJECT_HEADERS
4     Model.h
5     Model_Application.h
6     Model_Document.h
7     Model_Session.h
8     Model_Data.h
9     Model_AttributeDouble.h
10     Model_AttributeDocRef.h
11     Model_AttributeReference.h
12     Model_AttributeRefAttr.h
13     Model_AttributeRefList.h
14     Model_AttributeBoolean.h
15     Model_AttributeString.h
16     Model_AttributeInteger.h
17     Model_AttributeSelection.h
18     Model_Events.h
19     Model_Update.h
20     Model_Validator.h
21     Model_ResultBody.h
22     Model_ResultConstruction.h
23     Model_ResultPart.h
24     Model_FeatureValidator.h
25 )
26
27 SET(PROJECT_SOURCES
28     Model_Application.cpp
29     Model_Document.cpp
30     Model_Session.cpp
31     Model_Data.cpp
32     Model_AttributeDouble.cpp
33     Model_AttributeDocRef.cpp
34     Model_AttributeReference.cpp
35     Model_AttributeRefAttr.cpp
36     Model_AttributeRefList.cpp
37     Model_AttributeBoolean.cpp
38     Model_AttributeString.cpp
39     Model_AttributeInteger.cpp
40     Model_AttributeSelection.cpp
41     Model_Events.cpp
42     Model_Update.cpp
43     Model_Validator.cpp
44     Model_ResultBody.cpp
45     Model_ResultConstruction.cpp
46     Model_ResultPart.cpp
47     Model_FeatureValidator.cpp
48 )
49
50 SET(PROJECT_LIBRARIES
51     ModelAPI 
52     Events 
53     Config 
54     GeomData
55     GeomAPI
56     ${CAS_OCAF}
57     ${CAS_TKCAF}
58     ${CAS_SHAPE}
59     ${CAS_TKBO}
60 )
61
62
63
64 ADD_DEFINITIONS(-DMODEL_EXPORTS ${CAS_DEFINITIONS} ${BOOST_DEFINITIONS})
65 ADD_LIBRARY(Model SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
66 TARGET_LINK_LIBRARIES(Model ${PROJECT_LIBRARIES})
67
68 INCLUDE_DIRECTORIES(
69   ../ModelAPI
70   ../Events
71   ../Config
72   ../GeomData
73   ../GeomDataAPI
74   ../GeomAPI
75   ${CAS_INCLUDE_DIRS}
76 )
77
78 INSTALL(TARGETS Model DESTINATION bin)