]> SALOME platform Git repositories - modules/shaper.git/blob - src/Config/CMakeLists.txt
Salome HOME
b274350bbd4e82f5e8b7bb298d8906ccfdff9fa1
[modules/shaper.git] / src / Config / CMakeLists.txt
1 INCLUDE(Common)
2 INCLUDE(XMLProcessing)
3
4 INCLUDE_DIRECTORIES (${PROJECT_SOURCE_DIR}/src/Events) 
5
6 SET(PROJECT_HEADERS
7   Config_def.h
8   Config_FeatureMessage.h
9   Config_XMLReader.h
10   Config_ModuleReader.h
11   Config_FeatureReader.h
12   Config_Keywords.h
13   Config_WidgetAPI.h
14   Config_WidgetReader.h
15   Config_PointerMessage.h
16   Config_Common.h
17   Config_ValidatorMessage.h
18   Config_Prop.h
19   Config_PropManager.h
20   Config_AttributeMessage.h
21   Config_SelectionFilterMessage.h
22  )
23  
24 SET(PROJECT_SOURCES
25   Config_FeatureMessage.cpp
26   Config_XMLReader.cpp
27   Config_ModuleReader.cpp
28   Config_FeatureReader.cpp
29   Config_WidgetAPI.cpp
30   Config_WidgetReader.cpp
31   Config_PointerMessage.cpp
32   Config_Common.cpp
33   Config_ValidatorMessage.cpp
34   Config_Prop.cpp
35   Config_PropManager.cpp
36   Config_AttributeMessage.cpp
37   Config_SelectionFilterMessage.cpp
38 )
39
40 SET(XML_RESOURCES
41   plugins.xml
42 )
43
44 SET(PROJECT_LIBRARIES
45     Events
46     ${LIBXML2_LIBRARIES}
47 )
48
49 SOURCE_GROUP ("Resource Files" FILES ${XML_RESOURCES})
50
51 ADD_DEFINITIONS(-DCONFIG_EXPORTS -D_SCL_SECURE_NO_WARNINGS) 
52 # -D_SCL_SECURE_NO_WARNINGS - to disable warnings 4996
53
54 ADD_LIBRARY(Config SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
55
56 TARGET_LINK_LIBRARIES(Config ${PROJECT_LIBRARIES})
57
58 INSTALL(TARGETS Config DESTINATION bin)
59 INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins)